================
@@ -666,6 +666,10 @@ class TrivialFunctionAnalysisVisitor
     return IsFunctionTrivial(Callee);
   }
 
+  bool VisitGCCAsmStmt(const GCCAsmStmt *AS) {
+    return AS->getAsmString() == "brk #0xc471";
----------------
ojhunt wrote:

does this need to be restricted to a specific brk constant, and should it 
include int3, and similar?

I guess it's unlikely as whitespace is usually present only in multiline asm 
but is it worth considering stripping white space?

https://github.com/llvm/llvm-project/pull/155046
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to