diff gen/asmstmt.cpp @ 584:c7d7e2282ba3

Make sure functions containing inline asm are never inlined to avoid duplicated labels.
author Christian Kamm <kamm incasoftware de>
date Mon, 08 Sep 2008 20:38:55 +0200
parents 2fe2d4518618
children 26fce59fe80a
line wrap: on
line diff
--- a/gen/asmstmt.cpp	Sun Sep 07 17:44:25 2008 -0700
+++ b/gen/asmstmt.cpp	Mon Sep 08 20:38:55 2008 +0200
@@ -450,6 +450,9 @@
     LOG_SCOPE;
     Logger::println("BEGIN ASM");
 
+    // disable inlining
+    gIR->func()->setNeverInline();
+
     // create asm block structure
     assert(!p->asmBlock);
     IRAsmBlock* asmblock = new IRAsmBlock;