diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-25 17:34:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-25 17:34:17 +0000 |
commit | d957518b51ec853a115f277f8c080e6d55b4fd7c (patch) | |
tree | de1e842c20f2893719939000acfdd1895bc0ce49 /include | |
parent | b1512d2a7a954d5c7ed7a3937d638f696a3e5116 (diff) |
Use the C++ <cassert> header, not the C <assert.h> header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/Support/Annotation.h | 2 | ||||
-rw-r--r-- | include/llvm/AbstractTypeUser.h | 11 | ||||
-rw-r--r-- | include/llvm/Analysis/DSSupport.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSSupport.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/Annotation.h | 2 |
5 files changed, 9 insertions, 10 deletions
diff --git a/include/Support/Annotation.h b/include/Support/Annotation.h index d0eca3d4dc..f4b7c28202 100644 --- a/include/Support/Annotation.h +++ b/include/Support/Annotation.h @@ -16,7 +16,7 @@ #define SUPPORT_ANNOTATION_H #include <string> -#include <assert.h> +#include <cassert> class AnnotationID; class Annotation; diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index c1548c82f9..5e16374968 100644 --- a/include/llvm/AbstractTypeUser.h +++ b/include/llvm/AbstractTypeUser.h @@ -21,15 +21,14 @@ #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; diff --git a/include/llvm/Analysis/DSSupport.h b/include/llvm/Analysis/DSSupport.h index 7ba9b0c43c..ae9d52a869 100644 --- a/include/llvm/Analysis/DSSupport.h +++ b/include/llvm/Analysis/DSSupport.h @@ -10,7 +10,7 @@ #include <vector> #include <functional> #include <string> -#include <assert.h> +#include <cassert> #include "Support/HashExtras.h" #include "Support/hash_set" diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h index 7ba9b0c43c..ae9d52a869 100644 --- a/include/llvm/Analysis/DataStructure/DSSupport.h +++ b/include/llvm/Analysis/DataStructure/DSSupport.h @@ -10,7 +10,7 @@ #include <vector> #include <functional> #include <string> -#include <assert.h> +#include <cassert> #include "Support/HashExtras.h" #include "Support/hash_set" diff --git a/include/llvm/Support/Annotation.h b/include/llvm/Support/Annotation.h index d0eca3d4dc..f4b7c28202 100644 --- a/include/llvm/Support/Annotation.h +++ b/include/llvm/Support/Annotation.h @@ -16,7 +16,7 @@ #define SUPPORT_ANNOTATION_H #include <string> -#include <assert.h> +#include <cassert> class AnnotationID; class Annotation; |