aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86TargetObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-29 17:28:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-29 17:28:26 +0000
commite133ed88b56c7960f2424171987729e8f794361f (patch)
tree74082fa1cebd2f68f8f30021e2c08ee5251e7cfa /llvm/lib/Target/X86/X86TargetObjectFile.cpp
parent75cc7658e196f52d1d675b998b66d11b7591f5e1 (diff)
downloadllvm-e133ed88b56c7960f2424171987729e8f794361f.zip
llvm-e133ed88b56c7960f2424171987729e8f794361f.tar.gz
llvm-e133ed88b56c7960f2424171987729e8f794361f.tar.bz2
Move getSymbol to TargetLoweringObjectFile.
This allows constructing a Mangler with just a TargetMachine. llvm-svn: 193630
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86TargetObjectFile.cpp b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
index a19c5a6..086cd4d 100644
--- a/llvm/lib/Target/X86/X86TargetObjectFile.cpp
+++ b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
@@ -25,7 +25,7 @@ getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
// On Darwin/X86-64, we can reference dwarf symbols with foo@GOTPCREL+4, which
// is an indirect pc-relative reference.
if (Encoding & (DW_EH_PE_indirect | DW_EH_PE_pcrel)) {
- const MCSymbol *Sym = Mang->getSymbol(GV);
+ const MCSymbol *Sym = getSymbol(*Mang, GV);
const MCExpr *Res =
MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext());
const MCExpr *Four = MCConstantExpr::Create(4, getContext());
@@ -39,7 +39,7 @@ getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
MCSymbol *X86_64MachoTargetObjectFile::
getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
MachineModuleInfo *MMI) const {
- return Mang->getSymbol(GV);
+ return getSymbol(*Mang, GV);
}
void