aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-02-06 18:24:59 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-02-06 18:24:59 +0000
commita2d8b06272621a0cf4ec68c736163836f68a9fce (patch)
treecf70ee2bb04429d62c4704854552f25d2d828514 /lib
parent56774d2b0d865b597f47235ad708e772636e6834 (diff)
downloadexternal_llvm-a2d8b06272621a0cf4ec68c736163836f68a9fce.zip
external_llvm-a2d8b06272621a0cf4ec68c736163836f68a9fce.tar.gz
external_llvm-a2d8b06272621a0cf4ec68c736163836f68a9fce.tar.bz2
Print globl directive for variables with external linkage (global variables).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PIC16/PIC16AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp
index 63ad6e4..7ac4f84 100644
--- a/lib/Target/PIC16/PIC16AsmPrinter.cpp
+++ b/lib/Target/PIC16/PIC16AsmPrinter.cpp
@@ -217,6 +217,8 @@ void PIC16AsmPrinter::EmitExternsAndGlobals (Module &M) {
O << "\textern "<< Name << "\n";
else if (I->getLinkage() == GlobalValue::CommonLinkage)
O << "\tglobal "<< Name << "\n";
+ else if (I->getLinkage() == GlobalValue::ExternalLinkage)
+ O << "\tglobal "<< Name << "\n";
}
}
void PIC16AsmPrinter::EmitInitData (Module &M) {