mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Make the most commonly preselected instructions add to the names of the
instructions they augment, instead of replacing them. It's good for debugging, and it's OK for the sparcv9 backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b01c1381c0
commit
a846b729e4
@ -91,7 +91,7 @@ static GetElementPtrInst* getGlobalAddr(Value* ptr, Instruction& insertBefore) {
|
||||
return (isa<GlobalVariable>(ptr))
|
||||
? new GetElementPtrInst(ptr,
|
||||
std::vector<Value*>(1, ConstantSInt::get(Type::LongTy, 0U)),
|
||||
"addrOfGlobal", &insertBefore)
|
||||
"addrOfGlobal:" + ptr->getName(), &insertBefore)
|
||||
: NULL;
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ static Instruction* DecomposeConstantExpr(ConstantExpr* CE,
|
||||
getArg1 = gep;
|
||||
return new GetElementPtrInst(getArg1,
|
||||
std::vector<Value*>(CE->op_begin()+1, CE->op_end()),
|
||||
"constantGEP", &insertBefore);
|
||||
"constantGEP:" + getArg1->getName(), &insertBefore);
|
||||
|
||||
case Instruction::Select: {
|
||||
Value *C, *S1, *S2;
|
||||
|
Loading…
Reference in New Issue
Block a user