[cfe-commits] r64238 - /cfe/trunk/lib/CodeGen/ABIInfo.h

Daniel Dunbar daniel at zuster.org
Tue Feb 10 13:44:36 PST 2009


Author: ddunbar
Date: Tue Feb 10 15:44:36 2009
New Revision: 64238

URL: http://llvm.org/viewvc/llvm-project?rev=64238&view=rev
Log:
Pull CodeGenFunction::EmitVAArg into target specific ABIInfo classes.
 - Missed this file.

Modified:
    cfe/trunk/lib/CodeGen/ABIInfo.h

Modified: cfe/trunk/lib/CodeGen/ABIInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ABIInfo.h?rev=64238&r1=64237&r2=64238&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/ABIInfo.h (original)
+++ cfe/trunk/lib/CodeGen/ABIInfo.h Tue Feb 10 15:44:36 2009
@@ -21,6 +21,7 @@
   // down. Fortunately CGFunctionInfo has no real tie to CodeGen.
   namespace CodeGen {
     class CGFunctionInfo;
+    class CodeGenFunction;
   }
 
   /* FIXME: All of this stuff should be part of the target interface
@@ -116,6 +117,16 @@
 
     virtual void computeInfo(CodeGen::CGFunctionInfo &FI,
                              ASTContext &Ctx) const = 0;
+
+    /// EmitVAArg - Emit the target dependent code to load a value of
+    /// \arg Ty from the va_list pointed to by \arg VAListAddr.
+    
+    // FIXME: This is a gaping layering violation if we wanted to drop
+    // the ABI information any lower than CodeGen. Of course, for
+    // VAArg handling it has to be at this level; there is no way to
+    // abstract this out.
+    virtual llvm::Value *EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
+                                   CodeGen::CodeGenFunction &CGF) const = 0;
   };
 }  // end namespace clang
 





More information about the cfe-commits mailing list