mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
Don't sort the names before outputing the intrinsic name table. It causes a
mismatch against the enum table. This is a part of Sabre's master plan to drive me nuts with subtle bugs that happens to only affect x86 be. :-) llvm-svn: 27237
This commit is contained in:
parent
95a8c4fb11
commit
86b5b7cf18
@ -100,16 +100,11 @@ EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
|
||||
void IntrinsicEmitter::
|
||||
EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
|
||||
std::ostream &OS) {
|
||||
std::vector<std::string> Names;
|
||||
for (unsigned i = 0, e = Ints.size(); i != e; ++i)
|
||||
Names.push_back(Ints[i].Name);
|
||||
std::sort(Names.begin(), Names.end());
|
||||
|
||||
OS << "// Intrinsic ID to name table\n";
|
||||
OS << "#ifdef GET_INTRINSIC_NAME_TABLE\n";
|
||||
OS << " // Note that entry #0 is the invalid intrinsic!\n";
|
||||
for (unsigned i = 0, e = Names.size(); i != e; ++i)
|
||||
OS << " \"" << Names[i] << "\",\n";
|
||||
for (unsigned i = 0, e = Ints.size(); i != e; ++i)
|
||||
OS << " \"" << Ints[i].Name << "\",\n";
|
||||
OS << "#endif\n\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user