diff options
author | Duncan Sands <baldrick@free.fr> | 2008-09-29 11:25:42 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-09-29 11:25:42 +0000 |
commit | 5df3186f598163258fabf3448d9372843804d1ab (patch) | |
tree | 18ba793b36fe3510dc3e57d0d7156bbfe7b7af31 /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | 7ab5799f75766f8f6bc8b76416f6ae925324ebb8 (diff) | |
download | external_llvm-5df3186f598163258fabf3448d9372843804d1ab.zip external_llvm-5df3186f598163258fabf3448d9372843804d1ab.tar.gz external_llvm-5df3186f598163258fabf3448d9372843804d1ab.tar.bz2 |
Rename isWeakForLinker to mayBeOverridden. Use it
instead of hasWeakLinkage in a bunch of optimization
passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
-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 6e596b4..366a542 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -383,7 +383,7 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo, if (shouldPrintStub(TM, Subtarget)) { // Link-once, declaration, or Weakly-linked global variables need // non-lazily-resolved stubs - if (GV->isDeclaration() || GV->isWeakForLinker()) { + if (GV->isDeclaration() || GV->mayBeOverridden()) { // Dynamically-resolved functions need a stub for the function. if (isCallOp && isa<Function>(GV)) { // Function stubs are no longer needed for Mac OS X 10.5 and up. @@ -790,7 +790,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { } if (!GVar->isThreadLocal() && - (GVar->hasInternalLinkage() || GVar->isWeakForLinker())) { + (GVar->hasInternalLinkage() || GVar->mayBeOverridden())) { if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it. if (TAI->getLCOMMDirective() != NULL) { |