Use the C++ <cassert> header, not the C <assert.h> header
authorChris Lattner <sabre@nondot.org>
Fri, 25 Jul 2003 17:34:17 +0000 (17:34 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 25 Jul 2003 17:34:17 +0000 (17:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7310 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Annotation.h
include/llvm/AbstractTypeUser.h
include/llvm/Analysis/DSSupport.h
include/llvm/Analysis/DataStructure/DSSupport.h
include/llvm/Support/Annotation.h

index d0eca3d4dc4709095cf0596f4ef63ae642b3ffc9..f4b7c28202f10e88f05dbc14cfdad89991a50c8a 100644 (file)
@@ -16,7 +16,7 @@
 #define SUPPORT_ANNOTATION_H
 
 #include <string>
-#include <assert.h>
+#include <cassert>
 
 class AnnotationID;
 class Annotation;
index c1548c82f9bcfbc93c455840bea85e0ac45dc7f3..5e16374968214c8529a9795c08d3fe7a0454fc75 100644 (file)
 #ifndef LLVM_ABSTRACT_TYPE_USER_H
 #define LLVM_ABSTRACT_TYPE_USER_H
 
-//
-// This is the "master" include for assert.h
-// Whether this file needs it or not, it must always include assert.h for the
-// files which include llvm/AbstractTypeUser.h
+// This is the "master" include for <cassert> Whether this file needs it or not,
+// it must always include <cassert> for the files which include
+// llvm/AbstractTypeUser.h
 //
 // In this way, most every LLVM source file will have access to the assert()
-// macro without having to #include <assert.h> directly.
+// macro without having to #include <cassert> directly.
 //
-#include "Config/assert.h"
+#include <cassert>
 
 class Type;
 class DerivedType;
index 7ba9b0c43cab18caf3823712737d67fd92fb4eba..ae9d52a869245d4961093ba359a9188a098e5a9d 100644 (file)
@@ -10,7 +10,7 @@
 #include <vector>
 #include <functional>
 #include <string>
-#include <assert.h>
+#include <cassert>
 #include "Support/HashExtras.h"
 #include "Support/hash_set"
 
index 7ba9b0c43cab18caf3823712737d67fd92fb4eba..ae9d52a869245d4961093ba359a9188a098e5a9d 100644 (file)
@@ -10,7 +10,7 @@
 #include <vector>
 #include <functional>
 #include <string>
-#include <assert.h>
+#include <cassert>
 #include "Support/HashExtras.h"
 #include "Support/hash_set"
 
index d0eca3d4dc4709095cf0596f4ef63ae642b3ffc9..f4b7c28202f10e88f05dbc14cfdad89991a50c8a 100644 (file)
@@ -16,7 +16,7 @@
 #define SUPPORT_ANNOTATION_H
 
 #include <string>
-#include <assert.h>
+#include <cassert>
 
 class AnnotationID;
 class Annotation;