remove location tracking for target info
llvm-svn: 39671
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 3c4a68b..b315ab4 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/CodeGen/CodeGenFunction.cpp
@@ -39,13 +39,13 @@
}
-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;