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
This commit is contained in:
Chris Lattner 2003-07-25 17:34:17 +00:00
parent b1512d2a7a
commit d957518b51
5 changed files with 9 additions and 10 deletions

View File

@ -16,7 +16,7 @@
#define SUPPORT_ANNOTATION_H #define SUPPORT_ANNOTATION_H
#include <string> #include <string>
#include <assert.h> #include <cassert>
class AnnotationID; class AnnotationID;
class Annotation; class Annotation;

View File

@ -21,15 +21,14 @@
#ifndef LLVM_ABSTRACT_TYPE_USER_H #ifndef LLVM_ABSTRACT_TYPE_USER_H
#define LLVM_ABSTRACT_TYPE_USER_H #define LLVM_ABSTRACT_TYPE_USER_H
// // This is the "master" include for <cassert> Whether this file needs it or not,
// This is the "master" include for assert.h // it must always include <cassert> for the files which include
// Whether this file needs it or not, it must always include assert.h for the // llvm/AbstractTypeUser.h
// files which include llvm/AbstractTypeUser.h
// //
// In this way, most every LLVM source file will have access to the assert() // 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 Type;
class DerivedType; class DerivedType;

View File

@ -10,7 +10,7 @@
#include <vector> #include <vector>
#include <functional> #include <functional>
#include <string> #include <string>
#include <assert.h> #include <cassert>
#include "Support/HashExtras.h" #include "Support/HashExtras.h"
#include "Support/hash_set" #include "Support/hash_set"

View File

@ -10,7 +10,7 @@
#include <vector> #include <vector>
#include <functional> #include <functional>
#include <string> #include <string>
#include <assert.h> #include <cassert>
#include "Support/HashExtras.h" #include "Support/HashExtras.h"
#include "Support/hash_set" #include "Support/hash_set"

View File

@ -16,7 +16,7 @@
#define SUPPORT_ANNOTATION_H #define SUPPORT_ANNOTATION_H
#include <string> #include <string>
#include <assert.h> #include <cassert>
class AnnotationID; class AnnotationID;
class Annotation; class Annotation;