mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Fix PR1001, patch by Nikhil Patil!
llvm-svn: 31880
This commit is contained in:
parent
86e39c84b6
commit
670eb9da78
@ -3408,7 +3408,17 @@ static std::string getLegalCName(std::string OpName) {
|
||||
}
|
||||
|
||||
void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
||||
std::string InstNS = Target.inst_begin()->second.Namespace;
|
||||
// Get the namespace to insert instructions into. Make sure not to pick up
|
||||
// "TargetInstrInfo" by accidentally getting the namespace off the PHI
|
||||
// instruction or something.
|
||||
std::string InstNS;
|
||||
for (CodeGenTarget::inst_iterator i = Target.inst_begin(),
|
||||
e = Target.inst_end(); i != e; ++i) {
|
||||
InstNS = i->second.Namespace;
|
||||
if (InstNS != "TargetInstrInfo")
|
||||
break;
|
||||
}
|
||||
|
||||
if (!InstNS.empty()) InstNS += "::";
|
||||
|
||||
// Group the patterns by their top-level opcodes.
|
||||
|
Loading…
Reference in New Issue
Block a user