mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-19 04:29:45 +00:00
TableGen: Add LLVM_READONLY to generated InstrMapping functions
These just read from a generated table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
809a684e81
commit
a7a00148d5
@ -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…
x
Reference in New Issue
Block a user