mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-28 15:38:57 +00:00
Take the fast path for any named value and any GlobalValue, which doesn't
need TypePrinting despite being a subclass of Constant. This fixes compile-time problems especially visible on 403.gcc when -asm-verbose is enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d0be15f89
commit
009fc9e5d9
@ -1233,7 +1233,8 @@ void llvm::WriteAsOperand(raw_ostream &Out, const Value *V,
|
|||||||
|
|
||||||
// Fast path: Don't construct and populate a TypePrinting object if we
|
// Fast path: Don't construct and populate a TypePrinting object if we
|
||||||
// won't be needing any types printed.
|
// won't be needing any types printed.
|
||||||
if (!PrintType && !isa<Constant>(V)) {
|
if (!PrintType &&
|
||||||
|
(!isa<Constant>(V) || V->hasName() || isa<GlobalValue>(V))) {
|
||||||
WriteAsOperandInternal(Out, V, 0, 0);
|
WriteAsOperandInternal(Out, V, 0, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user