mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
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:
parent
56774d2b0d
commit
a2d8b06272
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user