[llvm-commits] [gcc-plugin] r75337 - /gcc-plugin/trunk/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Fri Jul 10 20:44:47 PDT 2009


Author: baldrick
Date: Fri Jul 10 22:44:46 2009
New Revision: 75337

URL: http://llvm.org/viewvc/llvm-project?rev=75337&view=rev
Log:
The lang_hooks.expand_constant method no longer
exists (the C++ f-e was fixed to not need it any
more).

Modified:
    gcc-plugin/trunk/llvm-convert.cpp

Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=75337&r1=75336&r2=75337&view=diff

==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Fri Jul 10 22:44:46 2009
@@ -6835,11 +6835,6 @@
 }
 
 Constant *TreeConstantToLLVM::Convert(tree exp) {
-  // Some front-ends use constants other than the standard language-independent
-  // varieties, but which may still be output directly.  Give the front-end a
-  // chance to convert EXP to a language-independent representation.
-  exp = lang_hooks.expand_constant (exp);
-
   assert((TREE_CONSTANT(exp) || TREE_CODE(exp) == STRING_CST) &&
          "Isn't a constant!");
   switch (TREE_CODE(exp)) {





More information about the llvm-commits mailing list