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:
Matt Pharr
2012-04-19 13:11:47 -07:00
parent 12c754c92b
commit cb9f50ef63

View File

@@ -1702,7 +1702,12 @@ std::string CWriter::GetValueName(const Value *Operand) {
VarName += ch;
}
return VarName + "_llvm_cbe";
if (isa<BasicBlock>(Operand))
VarName += "_label";
else
VarName += "_";
return VarName;
}
/// writeInstComputationInline - Emit the computation for the specified