aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-15 23:15:45 +0000
committerChris Lattner <sabre@nondot.org>2011-07-15 23:15:45 +0000
commitc1d414ad713406c67c19ff2a1db861046a51cea9 (patch)
treecb9f592c3d6b3c34a061517b17e03d4c9f05747d
parente63e5ab50ab37fd59cc6e815fffcb90e75537ca3 (diff)
downloadexternal_llvm-c1d414ad713406c67c19ff2a1db861046a51cea9.zip
external_llvm-c1d414ad713406c67c19ff2a1db861046a51cea9.tar.gz
external_llvm-c1d414ad713406c67c19ff2a1db861046a51cea9.tar.bz2
deconstify getType()'s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135323 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/InlineAsm.h6
-rw-r--r--lib/VMCore/InlineAsm.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h
index ed5bf8b..a98aff1 100644
--- a/include/llvm/InlineAsm.h
+++ b/include/llvm/InlineAsm.h
@@ -64,13 +64,13 @@ public:
/// getType - InlineAsm's are always pointers.
///
- const PointerType *getType() const {
- return reinterpret_cast<const PointerType*>(Value::getType());
+ PointerType *getType() const {
+ return reinterpret_cast<PointerType*>(Value::getType());
}
/// getFunctionType - InlineAsm's are always pointers to functions.
///
- const FunctionType *getFunctionType() const;
+ FunctionType *getFunctionType() const;
const std::string &getAsmString() const { return AsmString; }
const std::string &getConstraintString() const { return Constraints; }
diff --git a/lib/VMCore/InlineAsm.cpp b/lib/VMCore/InlineAsm.cpp
index 5ae4a1b..4a03b39 100644
--- a/lib/VMCore/InlineAsm.cpp
+++ b/lib/VMCore/InlineAsm.cpp
@@ -51,7 +51,7 @@ void InlineAsm::destroyConstant() {
delete this;
}
-const FunctionType *InlineAsm::getFunctionType() const {
+FunctionType *InlineAsm::getFunctionType() const {
return cast<FunctionType>(getType()->getElementType());
}