mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Don't write out constants that do not have a name, they will be inlined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bcbf6baf10
commit
1333ed5b4f
@ -129,13 +129,13 @@ bool AssemblyWriter::processConstPool(const ConstantPool &CP, bool isMethod) {
|
|||||||
// processConstant - Print out a constant pool entry...
|
// processConstant - Print out a constant pool entry...
|
||||||
//
|
//
|
||||||
bool AssemblyWriter::processConstant(const ConstPoolVal *CPV) {
|
bool AssemblyWriter::processConstant(const ConstPoolVal *CPV) {
|
||||||
Out << "\t";
|
if (!CPV->hasName())
|
||||||
|
return false; // Don't print out unnamed constants, they will be inlined
|
||||||
|
|
||||||
// Print out name if it exists...
|
// Print out name...
|
||||||
if (CPV->hasName())
|
Out << "\t%" << CPV->getName() << " = ";
|
||||||
Out << "%" << CPV->getName() << " = ";
|
|
||||||
|
|
||||||
// Print out the opcode...
|
// Print out the constant type...
|
||||||
Out << CPV->getType();
|
Out << CPV->getType();
|
||||||
|
|
||||||
// Write the value out now...
|
// Write the value out now...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user