If a global variable has a specified alignment that is less than the preferred
[oota-llvm.git] / lib / Target / SubtargetFeature.cpp
index b35190a369ea3d662fd3b93868c12e2a6e4a331b..3cf95b57c5dcba2f14d8699f6db4304e0bd53c23 100644 (file)
@@ -18,6 +18,7 @@
 #include <algorithm>
 #include <cassert>
 #include <cctype>
+#include <cstdlib>
 using namespace llvm;
 
 //===----------------------------------------------------------------------===//
@@ -162,7 +163,7 @@ static void Help(const SubtargetFeatureKV *CPUTable, size_t CPUTableSize,
   
   errs() << "Use +feature to enable a feature, or -feature to disable it.\n"
        << "For example, llc -mcpu=mycpu -mattr=+feature1,-feature2\n";
-  exit(1);
+  std::exit(1);
 }
 
 //===----------------------------------------------------------------------===//