diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-29 17:28:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-29 17:28:26 +0000 |
commit | 93cf0939f95b3d580d9c05375a7c84164e1ba72e (patch) | |
tree | a96b38da3a97d31cc718f361f15ab79fe2e12270 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | faf4ed2da85b10eb0b6c506c4a642a2a9395786f (diff) | |
download | llvm-93cf0939f95b3d580d9c05375a7c84164e1ba72e.tar.gz llvm-93cf0939f95b3d580d9c05375a7c84164e1ba72e.tar.bz2 llvm-93cf0939f95b3d580d9c05375a7c84164e1ba72e.tar.xz |
Move getSymbol to TargetLoweringObjectFile.
This allows constructing a Mangler with just a TargetMachine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 61f67e955f..37df93693e 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -164,7 +164,7 @@ bool AsmPrinter::doInitialization(Module &M) { OutStreamer.InitStreamer(); - Mang = new Mangler(OutContext, &TM); + Mang = new Mangler(&TM); // Allow the target to emit any magic that it wants at the start of the file. EmitStartOfAsmFile(M); @@ -264,7 +264,7 @@ void AsmPrinter::EmitLinkage(unsigned L, MCSymbol *GVSym) const { } MCSymbol *AsmPrinter::getSymbol(const GlobalValue *GV) const { - return Mang->getSymbol(GV); + return getObjFileLowering().getSymbol(*Mang, GV); } /// EmitGlobalVariable - Emit the specified global variable to the .s file. |