[llvm-commits] [llvm] r46009 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Bill Wendling
isanbard at gmail.com
Tue Jan 15 13:16:33 PST 2008
Author: void
Date: Tue Jan 15 15:16:32 2008
New Revision: 46009
URL: http://llvm.org/viewvc/llvm-project?rev=46009&view=rev
Log:
Reformatted. It was confusing the other way. No functionality change.
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=46009&r1=46008&r2=46009&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Tue Jan 15 15:16:32 2008
@@ -921,12 +921,13 @@
void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
if (GV->hasName()) Out << getLLVMName(GV->getName(), GlobalPrefix) << " = ";
- if (!GV->hasInitializer())
+ if (!GV->hasInitializer()) {
switch (GV->getLinkage()) {
case GlobalValue::DLLImportLinkage: Out << "dllimport "; break;
case GlobalValue::ExternalWeakLinkage: Out << "extern_weak "; break;
default: Out << "external "; break;
- } else {
+ }
+ } else {
switch (GV->getLinkage()) {
case GlobalValue::InternalLinkage: Out << "internal "; break;
case GlobalValue::LinkOnceLinkage: Out << "linkonce "; break;
More information about the llvm-commits
mailing list