diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-05 18:54:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-05 18:54:05 +0000 |
commit | 98be4943e8dc4f3905629a7102668960873cf863 (patch) | |
tree | 6f331c03a440216936c5c47e2e283b327ee46912 /CodeGen/CodeGenModule.cpp | |
parent | 631bf6c3251e57485d6a24d1137e39434a4afaad (diff) |
remove the source location arguments to various target query methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.cpp')
-rw-r--r-- | CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CodeGen/CodeGenModule.cpp b/CodeGen/CodeGenModule.cpp index 1a69796214..554fc3fbeb 100644 --- a/CodeGen/CodeGenModule.cpp +++ b/CodeGen/CodeGenModule.cpp @@ -231,7 +231,7 @@ void CodeGenModule::EmitGlobalVar(const FileVarDecl *D) { Init = llvm::Constant::getNullValue(GV->getType()->getElementType()); } else if (D->getType()->isIntegerType()) { llvm::APSInt Value(static_cast<uint32_t>( - getContext().getTypeSize(D->getInit()->getType(), SourceLocation()))); + getContext().getTypeSize(D->getInit()->getType()))); if (D->getInit()->isIntegerConstantExpr(Value, Context)) Init = llvm::ConstantInt::get(Value); } @@ -340,7 +340,7 @@ llvm::Function *CodeGenModule::getMemCpyFn() { if (MemCpyFn) return MemCpyFn; llvm::Intrinsic::ID IID; uint64_t Size; unsigned Align; - Context.Target.getPointerInfo(Size, Align, FullSourceLoc()); + Context.Target.getPointerInfo(Size, Align); switch (Size) { default: assert(0 && "Unknown ptr width"); case 32: IID = llvm::Intrinsic::memcpy_i32; break; @@ -353,7 +353,7 @@ llvm::Function *CodeGenModule::getMemSetFn() { if (MemSetFn) return MemSetFn; llvm::Intrinsic::ID IID; uint64_t Size; unsigned Align; - Context.Target.getPointerInfo(Size, Align, FullSourceLoc()); + Context.Target.getPointerInfo(Size, Align); switch (Size) { default: assert(0 && "Unknown ptr width"); case 32: IID = llvm::Intrinsic::memset_i32; break; |