summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WinCOFFObjectWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-10-05 15:11:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-10-05 15:11:03 +0000
commitbce26a1ee0c5197d575f7776561f6edf63a90289 (patch)
tree4ade42edf1503a2c17586b4125f4095ec6ed9d78 /llvm/lib/MC/WinCOFFObjectWriter.cpp
parentaca68323f332f6391c0ebc03c74a42f793a88080 (diff)
downloadbcm5719-llvm-bce26a1ee0c5197d575f7776561f6edf63a90289.tar.gz
bcm5719-llvm-bce26a1ee0c5197d575f7776561f6edf63a90289.zip
On ELF we need to know which symbols are used in relocations to decide if
they should be in the symbol table or not. Instead of "guessing", just compute the symbol table after the relocations are known. llvm-svn: 115619
Diffstat (limited to 'llvm/lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WinCOFFObjectWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp
index 82ccddf81d9..24c517b122d 100644
--- a/llvm/lib/MC/WinCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp
@@ -186,7 +186,7 @@ public:
bool IsPCRel,
const MCFragment *DF) const;
- void WriteObject(const MCAssembler &Asm, const MCAsmLayout &Layout);
+ void WriteObject(MCAssembler &Asm, const MCAsmLayout &Layout);
};
}
@@ -703,7 +703,7 @@ bool WinCOFFObjectWriter::IsFixupFullyResolved(const MCAssembler &Asm,
return false;
}
-void WinCOFFObjectWriter::WriteObject(const MCAssembler &Asm,
+void WinCOFFObjectWriter::WriteObject(MCAssembler &Asm,
const MCAsmLayout &Layout) {
// Assign symbol and section indexes and offsets.
Header.NumberOfSections = 0;
OpenPOWER on IntegriCloud