From 8bd4afeb876fd0015bb808eb2f3de1fe709658a7 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Sat, 19 Apr 2008 04:17:09 +0000 Subject: Generate code for annotation attributes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49951 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index e192e9913e..d40e35e00c 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -23,7 +23,7 @@ namespace llvm { class Module; class Constant; class Function; - class GlobalVariable; + class GlobalValue; class TargetData; } @@ -39,6 +39,7 @@ namespace clang { class TypeDecl; struct LangOptions; class Diagnostic; + class AnnotateAttr; namespace CodeGen { @@ -110,6 +111,8 @@ public: void UpdateCompletedType(const TagDecl *D); llvm::Constant *EmitGlobalInit(const Expr *E); llvm::Constant *EmitConstantExpr(const Expr *E, CodeGenFunction *CGF = 0); + llvm::Constant *EmitAnnotateAttr(llvm::GlobalValue *GV, + const AnnotateAttr *AA, unsigned LineNo); /// WarnUnsupported - Print out a warning that codegen doesn't support the /// specified stmt yet. -- cgit v1.2.3-18-g5258