[PATCH] D27219: Add MCNoDeprecatedASM into MC ASMParser TargetOption to have an option to disable deprecate warning in asm

Eric Christopher via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 15:47:00 PST 2016


echristo added inline comments.


================
Comment at: utils/TableGen/AsmMatcherEmitter.cpp:3202
     OS << "    std::string Info;\n";
-    OS << "    if (MII.get(Inst.getOpcode()).getDeprecatedInfo(Inst, getSTI(), Info)) {\n";
+    OS << "    if (!getParser().getTargetParser().\n";
+    OS << "        getTargetOptions().MCNoDeprecatedWarn &&\n";
----------------
Why the check for target parser here?



https://reviews.llvm.org/D27219





More information about the llvm-commits mailing list