diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-22 19:05:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-22 19:05:19 +0000 |
commit | f033c147c94d42439e789ef34f4c392b7d6e48c5 (patch) | |
tree | 338fac5232337e7c026b35eab77e3c1d89a6929c /clang/CodeGen/CodeGenFunction.cpp | |
parent | 0fb8465981df491b97297e146308ffc3df73fce3 (diff) | |
download | bcm5719-llvm-f033c147c94d42439e789ef34f4c392b7d6e48c5.tar.gz bcm5719-llvm-f033c147c94d42439e789ef34f4c392b7d6e48c5.zip |
remove location tracking for target info
llvm-svn: 39671
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenFunction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp index 3c4a68baeac..b315ab40b4f 100644 --- a/clang/CodeGen/CodeGenFunction.cpp +++ b/clang/CodeGen/CodeGenFunction.cpp @@ -39,13 +39,13 @@ llvm::BasicBlock *CodeGenFunction::getBasicBlockForLabel(const LabelStmt *S) { } -const llvm::Type *CodeGenFunction::ConvertType(QualType T, SourceLocation Loc) { - return CGM.getTypes().ConvertType(T, Loc); +const llvm::Type *CodeGenFunction::ConvertType(QualType T) { + return CGM.getTypes().ConvertType(T); } void CodeGenFunction::GenerateCode(const FunctionDecl *FD) { - LLVMIntTy = ConvertType(getContext().IntTy, FD->getLocation()); - LLVMPointerWidth = Target.getPointerWidth(FD->getLocation()); + LLVMIntTy = ConvertType(getContext().IntTy); + LLVMPointerWidth = Target.getPointerWidth(SourceLocation()); CurFn = cast<llvm::Function>(CGM.GetAddrOfGlobalDecl(FD)); CurFuncDecl = FD; |