mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
A minor simplication in the generated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a394117bc0
commit
a6a1ab3d28
@ -2875,7 +2875,7 @@ public:
|
|||||||
std::string NodeName;
|
std::string NodeName;
|
||||||
if (!isRoot) {
|
if (!isRoot) {
|
||||||
NodeName = "Tmp" + utostr(ResNo);
|
NodeName = "Tmp" + utostr(ResNo);
|
||||||
Code2 = "SDOperand " + NodeName + " = SDOperand(";
|
Code2 = "SDOperand " + NodeName + "(";
|
||||||
} else {
|
} else {
|
||||||
NodeName = "ResNode";
|
NodeName = "ResNode";
|
||||||
if (!ResNodeDecled) {
|
if (!ResNodeDecled) {
|
||||||
@ -2991,7 +2991,7 @@ public:
|
|||||||
bool NeedReplace = false;
|
bool NeedReplace = false;
|
||||||
if (NodeHasOutFlag) {
|
if (NodeHasOutFlag) {
|
||||||
if (!InFlagDecled) {
|
if (!InFlagDecled) {
|
||||||
emitCode("SDOperand InFlag = SDOperand(ResNode, " +
|
emitCode("SDOperand InFlag(ResNode, " +
|
||||||
utostr(NumResults + (unsigned)NodeHasChain) + ");");
|
utostr(NumResults + (unsigned)NodeHasChain) + ");");
|
||||||
InFlagDecled = true;
|
InFlagDecled = true;
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user