aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 23:55:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 23:55:21 +0000
commite03513b6e418341df9f2c18559c3e3557ac9b695 (patch)
treeb37623b927e150417e2964ee0464745404207d39 /lib/CodeGen
parentcc195216d67d3cea5cddc62dbfa187464eb48aee (diff)
downloadexternal_llvm-e03513b6e418341df9f2c18559c3e3557ac9b695.zip
external_llvm-e03513b6e418341df9f2c18559c3e3557ac9b695.tar.gz
external_llvm-e03513b6e418341df9f2c18559c3e3557ac9b695.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/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 887c417..582acce 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -477,7 +477,7 @@ void AsmPrinter::printPICJumpTableEntry(const MachineJumpTableInfo *MJTI,
/// special global used by LLVM. If so, emit it and return true, otherwise
/// do nothing and return false.
bool AsmPrinter::EmitSpecialLLVMGlobal(const GlobalVariable *GV) {
- if (GV->isName("llvm.used")) {
+ if (GV->getName() == "llvm.used") {
if (TAI->getUsedDirective() != 0) // No need to emit this at all.
EmitLLVMUsedList(GV->getInitializer());
return true;