summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenTBAA.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-04-15 18:04:54 +0000
committerDuncan Sands <baldrick@free.fr>2012-04-15 18:04:54 +0000
commitc720e78ebc3fd604d40a2589a0db27f08f5701b3 (patch)
treeda481e065df1ebcdbb0bc1e168cebb67ef44531f /clang/lib/CodeGen/CodeGenTBAA.h
parent62d5f6f247fdaa4b5b0da132aa82233d81fa461b (diff)
downloadbcm5719-llvm-c720e78ebc3fd604d40a2589a0db27f08f5701b3.tar.gz
bcm5719-llvm-c720e78ebc3fd604d40a2589a0db27f08f5701b3.zip
Use MDBuilder to help with metadata creation.
llvm-svn: 154767
Diffstat (limited to 'clang/lib/CodeGen/CodeGenTBAA.h')
-rw-r--r--clang/lib/CodeGen/CodeGenTBAA.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenTBAA.h b/clang/lib/CodeGen/CodeGenTBAA.h
index 8e08498b7e5..4a9785287d0 100644
--- a/clang/lib/CodeGen/CodeGenTBAA.h
+++ b/clang/lib/CodeGen/CodeGenTBAA.h
@@ -17,6 +17,7 @@
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/DenseMap.h"
+#include "llvm/Support/MDBuilder.h"
namespace llvm {
class LLVMContext;
@@ -41,6 +42,9 @@ class CodeGenTBAA {
const LangOptions &Features;
MangleContext &MContext;
+ // MDHelper - Helper for creating metadata.
+ llvm::MDBuilder MDHelper;
+
/// MetadataCache - This maps clang::Types to llvm::MDNodes describing them.
llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache;
@@ -55,10 +59,6 @@ class CodeGenTBAA {
/// considered to be equivalent to it.
llvm::MDNode *getChar();
- llvm::MDNode *getTBAAInfoForNamedType(StringRef NameStr,
- llvm::MDNode *Parent,
- bool Readonly = false);
-
public:
CodeGenTBAA(ASTContext &Ctx, llvm::LLVMContext &VMContext,
const LangOptions &Features,
OpenPOWER on IntegriCloud