From f033c147c94d42439e789ef34f4c392b7d6e48c5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 22 Jun 2007 19:05:19 +0000 Subject: remove location tracking for target info llvm-svn: 39671 --- clang/CodeGen/CodeGenFunction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/CodeGen/CodeGenFunction.cpp') 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(CGM.GetAddrOfGlobalDecl(FD)); CurFuncDecl = FD; -- cgit v1.2.3