diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenTBAA.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenTBAA.h | 11 |
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); |