[llvm-commits] [llvm] r134978 - in /llvm/trunk: include/llvm/Target/TargetData.h lib/Target/TargetData.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Tue Jul 12 04:36:58 PDT 2011
Author: grosser
Date: Tue Jul 12 06:36:58 2011
New Revision: 134978
URL: http://llvm.org/viewvc/llvm-project?rev=134978&view=rev
Log:
Remove IntegerType constness from TargetData
Modified:
llvm/trunk/include/llvm/Target/TargetData.h
llvm/trunk/lib/Target/TargetData.cpp
Modified: llvm/trunk/include/llvm/Target/TargetData.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetData.h?rev=134978&r1=134977&r2=134978&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetData.h (original)
+++ llvm/trunk/include/llvm/Target/TargetData.h Tue Jul 12 06:36:58 2011
@@ -259,7 +259,7 @@
/// getIntPtrType - Return an unsigned integer type that is the same size or
/// greater to the host pointer size.
///
- const IntegerType *getIntPtrType(LLVMContext &C) const;
+ IntegerType *getIntPtrType(LLVMContext &C) const;
/// getIndexedOffset - return the offset from the beginning of the type for
/// the specified indices. This is used to implement getelementptr.
Modified: llvm/trunk/lib/Target/TargetData.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetData.cpp?rev=134978&r1=134977&r2=134978&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetData.cpp (original)
+++ llvm/trunk/lib/Target/TargetData.cpp Tue Jul 12 06:36:58 2011
@@ -535,7 +535,7 @@
/// getIntPtrType - Return an unsigned integer type that is the same size or
/// greater to the host pointer size.
-const IntegerType *TargetData::getIntPtrType(LLVMContext &C) const {
+IntegerType *TargetData::getIntPtrType(LLVMContext &C) const {
return IntegerType::get(C, getPointerSizeInBits());
}
More information about the llvm-commits
mailing list