diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-28 18:24:32 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-28 18:24:32 +0000 |
commit | f62d4e240da840d9fa5092d336279f42763e5a8d (patch) | |
tree | 02b7d083a4655ef3922cedb8e185cc7f4fe90a3a | |
parent | d978e53c6d70822e3a668623bb2a3630d5a51cc2 (diff) | |
download | bcm5719-llvm-f62d4e240da840d9fa5092d336279f42763e5a8d.tar.gz bcm5719-llvm-f62d4e240da840d9fa5092d336279f42763e5a8d.zip |
[TableGen][X86] Replace a global std::vector with a regular array. llvm::find works on arrays, just need to use std::end to check the result.
llvm-svn: 304095
-rw-r--r-- | llvm/utils/TableGen/X86FoldTablesEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp index c2ca5734863..ca9d2cdf5fa 100644 --- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp @@ -73,7 +73,7 @@ const ManualMapEntry ManualMapSet[] = { }; // Do not add these instructions to any of the folding tables. -const std::vector<const char *> NoFoldSet = { +const char *const NoFoldSet[] = { "TCRETURNri64", "TCRETURNmi64", // Special dealing (in X86InstrCompiler.td under "TCRETURNri", // "tailcall stuff" section). @@ -645,7 +645,7 @@ void X86FoldTablesEmitter::run(raw_ostream &OS) { // class ptr_rc_tailcall, which can be of a size 32 or 64, to ensure // safe mapping of these instruction we manually map them and exclude // them from the automation. - if (find(NoFoldSet, Rec->getName().str()) != NoFoldSet.end() || + if (find(NoFoldSet, Rec->getName().str()) != std::end(NoFoldSet) || hasRSTRegClass(Inst) || hasPtrTailcallRegClass(Inst)) continue; |