aboutsummaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-09 00:49:29 +0000
committerChris Lattner <sabre@nondot.org>2009-07-09 00:49:29 +0000
commit885ce84ab8f5ce6e05be96b06b540fe95ee3bfda (patch)
tree32d3d0c6b440bfc6cca0a74349e39212893505ab /lib/Target
parent033bcee4efee6fd2b8f3eda5eda3dab9c8b30e18 (diff)
one more assertion!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index 3ae88eaffa..6890f11443 100644
--- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@ -360,8 +360,10 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo) {
if (shouldPrintPLT(TM, Subtarget)) {
// Assemble call via PLT for externally visible symbols
if (!GV->hasHiddenVisibility() && !GV->hasProtectedVisibility() &&
- !GV->hasLocalLinkage())
+ !GV->hasLocalLinkage()) {
O << "@PLT";
+ assert(MO.getTargetFlags() == 0);
+ }
}
if (Subtarget->isTargetCygMing() && GV->isDeclaration())
// Save function name for later type emission