[llvm] r222502 - Add accessor marcos to ConstantPlaceHolder, similar to those in the base class.

Richard Trieu rtrieu at google.com
Thu Nov 20 18:42:08 PST 2014


Author: rtrieu
Date: Thu Nov 20 20:42:08 2014
New Revision: 222502

URL: http://llvm.org/viewvc/llvm-project?rev=222502&view=rev
Log:
Add accessor marcos to ConstantPlaceHolder, similar to those in the base class.

Modified:
    llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=222502&r1=222501&r2=222502&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Thu Nov 20 20:42:08 2014
@@ -280,7 +280,7 @@ namespace {
 
 
     /// Provide fast operand accessors
-    //DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
+    DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
   };
 }
 
@@ -289,6 +289,7 @@ template <>
 struct OperandTraits<ConstantPlaceHolder> :
   public FixedNumOperandTraits<ConstantPlaceHolder, 1> {
 };
+DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantPlaceHolder, Value)
 }
 
 





More information about the llvm-commits mailing list