changeset 145:9987f868744e

fix CbC_llvm
author mir3636
date Tue, 05 Jun 2018 21:59:34 +0900
parents 488dcfcac50b
children 3fc4d5c3e21e
files include/llvm/CodeGen/TargetPassConfig.h lib/CodeGen/TargetPassConfig.cpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/include/llvm/CodeGen/TargetPassConfig.h	Tue Apr 03 19:13:59 2018 +0900
+++ b/include/llvm/CodeGen/TargetPassConfig.h	Tue Jun 05 21:59:34 2018 +0900
@@ -145,7 +145,7 @@
 
   CodeGenOpt::Level getOptLevel() const;
 #ifndef noCbC
-  unsigned hasCodeSegment() const;
+  unsigned hasCodeSegment();
 #endif
   /// Describe the status of the codegen
   /// pipeline set by this target pass config.
--- a/lib/CodeGen/TargetPassConfig.cpp	Tue Apr 03 19:13:59 2018 +0900
+++ b/lib/CodeGen/TargetPassConfig.cpp	Tue Jun 05 21:59:34 2018 +0900
@@ -382,8 +382,8 @@
 }
 
 #ifndef noCbC
-unsigned TargetPassConfig::hasCodeSegment() const { 
-    return TM->Options.HasCodeSegment; 
+unsigned TargetPassConfig::hasCodeSegment() {
+    return TM->Options.HasCodeSegment;
 }
 #endif