forked from OSchip/llvm-project
parent
97599f1211
commit
85586baee7
|
@ -2220,7 +2220,8 @@ public:
|
|||
/// EmitResultCode - Emit the action for a pattern. Now that it has matched
|
||||
/// we actually have to build a DAG!
|
||||
std::pair<unsigned, unsigned>
|
||||
EmitResultCode(TreePatternNode *N, bool LikeLeaf = false, bool isRoot = false) {
|
||||
EmitResultCode(TreePatternNode *N, bool LikeLeaf = false,
|
||||
bool isRoot = false) {
|
||||
// This is something selected from the pattern we matched.
|
||||
if (!N->getName().empty()) {
|
||||
std::string &Val = VariableMap[N->getName()];
|
||||
|
@ -3056,8 +3057,8 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
|||
}
|
||||
|
||||
// Print all declarations.
|
||||
for (std::set<std::pair<bool, std::string> >::iterator I = GeneratedDecl.begin(),
|
||||
E = GeneratedDecl.end(); I != E; ++I)
|
||||
for (std::set<std::pair<bool, std::string> >::iterator
|
||||
I = GeneratedDecl.begin(), E = GeneratedDecl.end(); I != E; ++I)
|
||||
if (I->first)
|
||||
OS << " SDNode *" << I->second << ";\n";
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue