diff gen/abi.h @ 1359:34f2fd925de3

Intrinsics shouldn't see struct padding, so use a special TargetABI for them that removes it. This unbreaks the `llvm_*_with_overflow` intrinsics.
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 16 May 2009 13:06:49 +0200
parents 6bb04dbee21f
children
line wrap: on
line diff
--- a/gen/abi.h	Fri May 15 17:17:20 2009 +0200
+++ b/gen/abi.h	Sat May 16 13:06:49 2009 +0200
@@ -33,7 +33,10 @@
 // interface called by codegen
 struct TargetABI
 {
+    /// Returns the ABI for the target we're compiling for
     static TargetABI* getTarget();
+    /// Returns the ABI for intrinsics
+    static TargetABI* getIntrinsic();
 
     virtual void newFunctionType(TypeFunction* tf) {}
     virtual bool returnInArg(TypeFunction* tf) = 0;