[llvm-commits] [dragonegg] r94905 - in /dragonegg/trunk: llvm-abi.h llvm-convert.cpp

Duncan Sands baldrick at free.fr
Sat Jan 30 09:30:07 PST 2010


Author: baldrick
Date: Sat Jan 30 11:30:07 2010
New Revision: 94905

URL: http://llvm.org/viewvc/llvm-project?rev=94905&view=rev
Log:
Port commit 94328 (rafael) from llvm-gcc:
isShadowReturn was marked const in some files but not in others.
Make it const everywhere.

Modified:
    dragonegg/trunk/llvm-abi.h
    dragonegg/trunk/llvm-convert.cpp

Modified: dragonegg/trunk/llvm-abi.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-abi.h?rev=94905&r1=94904&r2=94905&view=diff

==============================================================================
--- dragonegg/trunk/llvm-abi.h (original)
+++ dragonegg/trunk/llvm-abi.h Sat Jan 30 11:30:07 2010
@@ -62,7 +62,7 @@
 /// DefaultABIClient - This is a simple implementation of the ABI client
 /// interface that can be subclassed.
 struct DefaultABIClient {
-  bool isShadowReturn() { return false; }
+  bool isShadowReturn() const { return false; }
 
   /// HandleScalarResult - This callback is invoked if the function returns a
   /// simple scalar result value, which is of type RetTy.

Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=94905&r1=94904&r2=94905&view=diff

==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Sat Jan 30 11:30:07 2010
@@ -372,7 +372,7 @@
     /// getCallingConv - This provides the desired CallingConv for the function.
     CallingConv::ID& getCallingConv(void) { return CallingConv; }
 
-    bool isShadowReturn() {
+    bool isShadowReturn() const {
       return isShadowRet;
     }
     void setName(const std::string &Name) {
@@ -2375,7 +2375,7 @@
       LocStack.clear();
     }
 
-    bool isShadowReturn() { return isShadowRet; }
+    bool isShadowReturn() const { return isShadowRet; }
     bool isAggrReturn() { return isAggrRet; }
 
     // EmitShadowResult - If the return result was redirected to a buffer,





More information about the llvm-commits mailing list