Shrink some code.

llvm-svn: 14956
This commit is contained in:
Reid Spencer 2004-07-18 01:04:19 +00:00
parent 7c6b3d17f0
commit c9c90cfb29
1 changed files with 1 additions and 4 deletions

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);