C++ backend: mangle variable names less.
This makes the generated code a little easier to connect with the original program.
This commit is contained in:
@@ -1702,7 +1702,12 @@ std::string CWriter::GetValueName(const Value *Operand) {
|
|||||||
VarName += ch;
|
VarName += ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
return VarName + "_llvm_cbe";
|
if (isa<BasicBlock>(Operand))
|
||||||
|
VarName += "_label";
|
||||||
|
else
|
||||||
|
VarName += "_";
|
||||||
|
|
||||||
|
return VarName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// writeInstComputationInline - Emit the computation for the specified
|
/// writeInstComputationInline - Emit the computation for the specified
|
||||||
|
|||||||
Reference in New Issue
Block a user