summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-16 00:16:26 +0000
committerChris Lattner <sabre@nondot.org>2007-06-16 00:16:26 +0000
commit2ccb73bc8b017844840f66d74a3eb07d28014b62 (patch)
treed24a2904d56f7d5e9deac046af708febca982681 /clang/CodeGen/CodeGenFunction.cpp
parent2052bc810726672c19b3f59b91479efd61f9e67f (diff)
downloadbcm5719-llvm-2ccb73bc8b017844840f66d74a3eb07d28014b62.tar.gz
bcm5719-llvm-2ccb73bc8b017844840f66d74a3eb07d28014b62.zip
Refactor CodeGenTypes out to CodeGenModule so it can be used for functions
and globals. llvm-svn: 39661
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/CodeGen/CodeGenFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 4dece886bec..d3abbc97e2b 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/CodeGen/CodeGenFunction.cpp
@@ -23,7 +23,7 @@ using namespace clang;
using namespace CodeGen;
CodeGenFunction::CodeGenFunction(CodeGenModule &cgm)
- : CGM(cgm), Target(CGM.getContext().Target), Types(Target) {}
+ : CGM(cgm), Target(CGM.getContext().Target) {}
ASTContext &CodeGenFunction::getContext() const {
return CGM.getContext();
@@ -40,7 +40,7 @@ llvm::BasicBlock *CodeGenFunction::getBasicBlockForLabel(const LabelStmt *S) {
const llvm::Type *CodeGenFunction::ConvertType(QualType T, SourceLocation Loc) {
- return Types.ConvertType(T, Loc);
+ return CGM.getTypes().ConvertType(T, Loc);
}
void CodeGenFunction::GenerateCode(const FunctionDecl *FD) {
OpenPOWER on IntegriCloud