diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 23:55:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 23:55:21 +0000 |
commit | 03d7651c3652e1f0cc86e79b26585d86818da9cf (patch) | |
tree | b37623b927e150417e2964ee0464745404207d39 /lib/Target/X86/AsmPrinter | |
parent | 460d51e0c029814cd901a2642bcaa7d776ff5929 (diff) | |
download | external_llvm-03d7651c3652e1f0cc86e79b26585d86818da9cf.zip external_llvm-03d7651c3652e1f0cc86e79b26585d86818da9cf.tar.gz external_llvm-03d7651c3652e1f0cc86e79b26585d86818da9cf.tar.bz2 |
Remove Value::{isName, getNameRef}.
Also, change MDString to use a StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 6e44b9b..16d8482 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -773,9 +773,9 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) { if (EmitSpecialLLVMGlobal(GVar)) { if (Subtarget->isTargetDarwin() && TM.getRelocationModel() == Reloc::Static) { - if (GVar->isName("llvm.global_ctors")) + if (GVar->getName() == "llvm.global_ctors") O << ".reference .constructors_used\n"; - else if (GVar->isName("llvm.global_dtors")) + else if (GVar->getName() == "llvm.global_dtors") O << ".reference .destructors_used\n"; } return; |