Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: src/IceELFSection.h

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceELFObjectWriter.cpp ('k') | src/IceFixups.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceELFSection.h
diff --git a/src/IceELFSection.h b/src/IceELFSection.h
index 6d24e4af5e13ba3d060ecdb7186c2f8c3fed2499..ef1b299f68d1e8275175a9d61baa3f2d44979350 100644
--- a/src/IceELFSection.h
+++ b/src/IceELFSection.h
@@ -352,10 +352,12 @@ void ELFRelocationSection::writeData(const GlobalContext &Ctx, ELFStreamer &Str,
const ELFSymbolTableSection *SymTab) {
for (const AssemblerFixup &Fixup : Fixups) {
const ELFSym *Symbol;
- if (Fixup.isNullSymbol())
+ if (Fixup.isNullSymbol()) {
Symbol = SymTab->getNullSymbol();
- else
- Symbol = SymTab->findSymbol(Fixup.symbol(&Ctx));
+ } else {
+ constexpr Assembler *Asm = nullptr;
+ Symbol = SymTab->findSymbol(Fixup.symbol(&Ctx, Asm));
+ }
if (!Symbol)
llvm::report_fatal_error("Missing symbol mentioned in reloc");
« no previous file with comments | « src/IceELFObjectWriter.cpp ('k') | src/IceFixups.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698