diff lib/CodeGen/TargetPassConfig.cpp @ 124:4fa72497ed5d

fix
author mir3636
date Thu, 30 Nov 2017 20:04:56 +0900
parents 803732b1fca8
children 7c836c76d71d
line wrap: on
line diff
--- a/lib/CodeGen/TargetPassConfig.cpp	Thu Nov 30 18:21:27 2017 +0900
+++ b/lib/CodeGen/TargetPassConfig.cpp	Thu Nov 30 20:04:56 2017 +0900
@@ -391,6 +391,12 @@
   return TM->getOptLevel();
 }
 
+#ifndef noCbC
+unsigned TargetPassConfig::hasCodeSegment() const { 
+    return TM->Options.HasCodeSegment; 
+}
+#endif
+
 /// Insert InsertedPassID pass after TargetPassID.
 void TargetPassConfig::insertPass(AnalysisID TargetPassID,
                                   IdentifyingPassPtr InsertedPassID,