summaryrefslogtreecommitdiffstats
path: root/include/llvm
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
commit8f413fa9c00dbaea000ddfe265ab5edd285ea3ab (patch)
tree56e968732b36096ce5c5e50c111bafb847603348 /include/llvm
parent4a12f2277315eda5fc5eed138365ff92f7f4e8a8 (diff)
downloadexternal_llvm-8f413fa9c00dbaea000ddfe265ab5edd285ea3ab.zip
external_llvm-8f413fa9c00dbaea000ddfe265ab5edd285ea3ab.tar.gz
external_llvm-8f413fa9c00dbaea000ddfe265ab5edd285ea3ab.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/ELFObjectWriter.h2
-rw-r--r--include/llvm/MC/MCObjectWriter.h2
-rw-r--r--include/llvm/MC/MachObjectWriter.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/MC/ELFObjectWriter.h b/include/llvm/MC/ELFObjectWriter.h
index c8a42fe..aba8b49 100644
--- a/include/llvm/MC/ELFObjectWriter.h
+++ b/include/llvm/MC/ELFObjectWriter.h
@@ -44,7 +44,7 @@ public:
bool IsPCRel,
const MCFragment *DF) const;
- virtual void WriteObject(const MCAssembler &Asm, const MCAsmLayout &Layout);
+ virtual void WriteObject(MCAssembler &Asm, const MCAsmLayout &Layout);
};
} // End llvm namespace
diff --git a/include/llvm/MC/MCObjectWriter.h b/include/llvm/MC/MCObjectWriter.h
index 7571583..6814cb5 100644
--- a/include/llvm/MC/MCObjectWriter.h
+++ b/include/llvm/MC/MCObjectWriter.h
@@ -90,7 +90,7 @@ public:
/// This routine is called by the assembler after layout and relaxation is
/// complete, fixups have been evaluated and applied, and relocations
/// generated.
- virtual void WriteObject(const MCAssembler &Asm,
+ virtual void WriteObject(MCAssembler &Asm,
const MCAsmLayout &Layout) = 0;
/// @}
diff --git a/include/llvm/MC/MachObjectWriter.h b/include/llvm/MC/MachObjectWriter.h
index 198da8f..f1079e3 100644
--- a/include/llvm/MC/MachObjectWriter.h
+++ b/include/llvm/MC/MachObjectWriter.h
@@ -41,7 +41,7 @@ public:
bool IsPCRel,
const MCFragment *DF) const;
- virtual void WriteObject(const MCAssembler &Asm, const MCAsmLayout &Layout);
+ virtual void WriteObject(MCAssembler &Asm, const MCAsmLayout &Layout);
};
} // End llvm namespace