From c1d414ad713406c67c19ff2a1db861046a51cea9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 15 Jul 2011 23:15:45 +0000 Subject: [PATCH] deconstify getType()'s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135323 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/InlineAsm.h | 6 +++--- lib/VMCore/InlineAsm.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h index ed5bf8b38af..a98aff178cc 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(Value::getType()); + PointerType *getType() const { + return reinterpret_cast(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 5ae4a1bb94f..4a03b395e98 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(getType()->getElementType()); } -- 2.34.1