forked from OSchip/llvm-project
TableGen: Add LLVM_READONLY to generated InstrMapping functions
These just read from a generated table. llvm-svn: 248473
This commit is contained in:
parent
cab64f1c75
commit
b12c0d9e38
|
@ -471,7 +471,7 @@ void MapTableEmitter::emitTablesWithFunc(raw_ostream &OS) {
|
|||
|
||||
ListInit *ColFields = InstrMapDesc.getColFields();
|
||||
const std::vector<ListInit*> &ValueCols = InstrMapDesc.getValueCols();
|
||||
OS << "// "<< InstrMapDesc.getName() << "\n";
|
||||
OS << "// "<< InstrMapDesc.getName() << "\nLLVM_READONLY\n";
|
||||
OS << "int "<< InstrMapDesc.getName() << "(uint16_t Opcode";
|
||||
if (ValueCols.size() > 1) {
|
||||
for (Init *CF : ColFields->getValues()) {
|
||||
|
|
Loading…
Reference in New Issue