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
This commit is contained in:
Sanjiv Gupta 2009-02-06 18:24:59 +00:00
parent 56774d2b0d
commit a2d8b06272

View File

@ -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) {