summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-10-11 10:13:44 +0000
committerNico Weber <nicolasweber@gmx.de>2012-10-11 10:13:44 +0000
commitcf4ff586e8c2e26041befa0941a6552ad902df2f (patch)
tree2b627ffc3b94e16f4d7878c880b7bed36f7ddeae /clang/lib/CodeGen/CodeGenModule.h
parente4658e89d771338c429f052730e4a18586e49e19 (diff)
downloadbcm5719-llvm-cf4ff586e8c2e26041befa0941a6552ad902df2f.tar.gz
bcm5719-llvm-cf4ff586e8c2e26041befa0941a6552ad902df2f.zip
Add codegen support for __uuidof().
llvm-svn: 165710
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 923b268dac3..d51a4670baf 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -549,6 +549,9 @@ public:
/// for the given type.
llvm::Constant *GetAddrOfRTTIDescriptor(QualType Ty, bool ForEH = false);
+ /// GetAddrOfUuidDescriptor - Get the address of a uuid descriptor .
+ llvm::Constant *GetAddrOfUuidDescriptor(const CXXUuidofExpr* E);
+
/// GetAddrOfThunk - Get the address of the thunk for the given global decl.
llvm::Constant *GetAddrOfThunk(GlobalDecl GD, const ThunkInfo &Thunk);
@@ -985,6 +988,9 @@ private:
/// to emit the .gcno and .gcda files in a way that persists in .bc files.
void EmitCoverageFile();
+ /// Emits the initializer for a uuidof string.
+ llvm::Constant *EmitUuidofInitializer(StringRef uuidstr, QualType IIDType);
+
/// MayDeferGeneration - Determine if the given decl can be emitted
/// lazily; this is only relevant for definitions. The given decl
/// must be either a function or var decl.
OpenPOWER on IntegriCloud