[PATCH] D73070: Add function attribute "patchable-function-prefix" to support -fpatchable-function-entry=N,M where M>0

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 13:56:53 PST 2020


MaskRay added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/AsmPrinter.h:456
+  /// Emit N NOP instructions.
+  void emitNops(int N);
+
----------------
nickdesaulniers wrote:
> `unsigned N`
> 
> Can we mark this method `const`?
We can't. `void AsmPrinter::EmitToStreamer(MCStreamer &S, const MCInst &Inst) {` is not const.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73070/new/

https://reviews.llvm.org/D73070





More information about the llvm-commits mailing list