forked from OSchip/llvm-project
Reformatted. It was confusing the other way. No functionality change.
llvm-svn: 46009
This commit is contained in:
parent
1390ef4163
commit
d21d90cf98
|
@ -921,12 +921,13 @@ void AssemblyWriter::printModule(const Module *M) {
|
||||||
void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
||||||
if (GV->hasName()) Out << getLLVMName(GV->getName(), GlobalPrefix) << " = ";
|
if (GV->hasName()) Out << getLLVMName(GV->getName(), GlobalPrefix) << " = ";
|
||||||
|
|
||||||
if (!GV->hasInitializer())
|
if (!GV->hasInitializer()) {
|
||||||
switch (GV->getLinkage()) {
|
switch (GV->getLinkage()) {
|
||||||
case GlobalValue::DLLImportLinkage: Out << "dllimport "; break;
|
case GlobalValue::DLLImportLinkage: Out << "dllimport "; break;
|
||||||
case GlobalValue::ExternalWeakLinkage: Out << "extern_weak "; break;
|
case GlobalValue::ExternalWeakLinkage: Out << "extern_weak "; break;
|
||||||
default: Out << "external "; break;
|
default: Out << "external "; break;
|
||||||
} else {
|
}
|
||||||
|
} else {
|
||||||
switch (GV->getLinkage()) {
|
switch (GV->getLinkage()) {
|
||||||
case GlobalValue::InternalLinkage: Out << "internal "; break;
|
case GlobalValue::InternalLinkage: Out << "internal "; break;
|
||||||
case GlobalValue::LinkOnceLinkage: Out << "linkonce "; break;
|
case GlobalValue::LinkOnceLinkage: Out << "linkonce "; break;
|
||||||
|
|
Loading…
Reference in New Issue