summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenTBAA.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-25 21:48:30 +0000
committerDan Gohman <gohman@apple.com>2010-10-25 21:48:30 +0000
commit7dfd13c16730a6dc16a8cea824f2f7daa5f8488f (patch)
tree699c7a3d46d0819c2006854f0c41d7b47a8c46c1 /clang/lib/CodeGen/CodeGenTBAA.h
parenta3a113e2d2ab5592b3b55dc8b97ebb66680694af (diff)
downloadbcm5719-llvm-7dfd13c16730a6dc16a8cea824f2f7daa5f8488f.tar.gz
bcm5719-llvm-7dfd13c16730a6dc16a8cea824f2f7daa5f8488f.zip
Factor out the code for creating the Root and Char nodes, so that
they can be used outside of the main getTBAAInfo function. llvm-svn: 117320
Diffstat (limited to 'clang/lib/CodeGen/CodeGenTBAA.h')
-rw-r--r--clang/lib/CodeGen/CodeGenTBAA.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenTBAA.h b/clang/lib/CodeGen/CodeGenTBAA.h
index e49d336d381..5a56079fc95 100644
--- a/clang/lib/CodeGen/CodeGenTBAA.h
+++ b/clang/lib/CodeGen/CodeGenTBAA.h
@@ -44,13 +44,16 @@ class CodeGenTBAA {
/// MetadataCache - This maps clang::Types to llvm::MDNodes describing them.
llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache;
- /// Root - This is the mdnode for the root of the metadata type graph
- /// for this translation unit.
llvm::MDNode *Root;
+ llvm::MDNode *Char;
- /// Char - This is the mdnode for "char", which is special, and any types
+ /// getRoot - This is the mdnode for the root of the metadata type graph
+ /// for this translation unit.
+ llvm::MDNode *getRoot();
+
+ /// getChar - This is the mdnode for "char", which is special, and any types
/// considered to be equivalent to it.
- llvm::MDNode *Char;
+ llvm::MDNode *getChar();
llvm::MDNode *getTBAAInfoForNamedType(llvm::StringRef NameStr,
llvm::MDNode *Parent);
OpenPOWER on IntegriCloud