mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 09:21:02 +00:00
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:
parent
b0104d07ee
commit
acc928042d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user