diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-09-02 00:18:52 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-09-02 00:18:52 +0000 |
| commit | e8bbc121528b08157bf7457dada4bc87315a2c18 (patch) | |
| tree | 16dae6b0d269ea7c0246e2cba993af6a3ae6a18b /clang/lib/CodeGen/CodeGenModule.h | |
| parent | 83297dfc7e5a311af23eb686e29bc41d31322a79 (diff) | |
| download | bcm5719-llvm-e8bbc121528b08157bf7457dada4bc87315a2c18.tar.gz bcm5719-llvm-e8bbc121528b08157bf7457dada4bc87315a2c18.zip | |
Extend the ASTContext constructor to delay the initialization of
builtin types (When requested). This is another step toward making
ASTUnit build the ASTContext as needed when loading an AST file,
rather than doing so after the fact. No actual functionality change (yet).
llvm-svn: 138985
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 076c29c4de4..53c29002f96 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -383,7 +383,7 @@ public: CodeGenVTables &getVTables() { return VTables; } Diagnostic &getDiags() const { return Diags; } const llvm::TargetData &getTargetData() const { return TheTargetData; } - const TargetInfo &getTarget() const { return Context.Target; } + const TargetInfo &getTarget() const { return Context.getTargetInfo(); } llvm::LLVMContext &getLLVMContext() { return VMContext; } const TargetCodeGenInfo &getTargetCodeGenInfo(); bool isTargetDarwin() const; |

