diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-03 06:36:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-03 06:36:51 +0000 |
commit | 8f925280abe3795ae0fb47f2ba90faea62e26af4 (patch) | |
tree | 966f96b5035e0ae816dfb2b18b32c46154733353 /CodeGen/CodeGenModule.h | |
parent | 0196cab54007ff072ec2642da8911c6b7e8d3fb5 (diff) |
Fix a crash reported by Seo Sanghyeon.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index acfb3349e6..6653e50881 100644 --- a/CodeGen/CodeGenModule.h +++ b/CodeGen/CodeGenModule.h @@ -67,6 +67,7 @@ public: llvm::Module &getModule() const { return TheModule; } CodeGenTypes &getTypes() { return Types; } Diagnostic &getDiags() const { return Diags; } + const llvm::TargetData &getTargetData() const { return TheTargetData; } llvm::Constant *GetAddrOfFunctionDecl(const FunctionDecl *D, bool isDefinition); |