Shrink some code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-07-18 01:04:19 +00:00
parent b0104d07ee
commit acc928042d

View File

@ -766,10 +766,7 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
if (GV->hasInitializer()) {
Constant* C = cast<Constant>(GV->getInitializer());
assert(C && "GlobalVar initializer isn't constant?");
if (isa<GlobalValue>(C))
writeOperand(GV->getInitializer(), false, true);
else
writeOperand(GV->getInitializer(), false, false);
writeOperand(GV->getInitializer(), false, isa<GlobalValue>(C));
}
printInfoComment(*GV);