[llvm-commits] CVS: llvm/include/llvm/AbstractTypeUser.h Constant.h ConstantHandling.h Constants.h DerivedTypes.h GlobalVariable.h Instruction.h Pass.h PassAnalysisSupport.h PassSupport.h SymbolTable.h User.h iOther.h iPHINode.h iTerminators.h
John Criswell
criswell at choi.cs.uiuc.edu
Fri Jun 27 13:34:16 PDT 2003
Changes in directory llvm/include/llvm:
AbstractTypeUser.h updated: 1.6.2.2 -> 1.6.2.3
Constant.h updated: 1.7.2.1 -> 1.7.2.2
ConstantHandling.h updated: 1.26.2.1 -> 1.26.2.2
Constants.h updated: 1.26.2.2 -> 1.26.2.3
DerivedTypes.h updated: 1.29.2.2 -> 1.29.2.3
GlobalVariable.h updated: 1.20.2.2 -> 1.20.2.3
Instruction.h updated: 1.40.2.2 -> 1.40.2.3
Pass.h updated: 1.33.2.1 -> 1.33.2.2
PassAnalysisSupport.h updated: 1.12.2.1 -> 1.12.2.2
PassSupport.h updated: 1.12.2.1 -> 1.12.2.2
SymbolTable.h updated: 1.21.2.2 -> 1.21.2.3
User.h updated: 1.18.2.2 -> 1.18.2.3
iOther.h updated: 1.35.2.2 -> 1.35.2.3
iPHINode.h updated: 1.9.2.2 -> 1.9.2.3
iTerminators.h updated: 1.27.2.2 -> 1.27.2.3
---
Log message:
Removed the user of assert.h. It is now globally included in
llvm/AbstractTypeUser.h.
Updated some of the files to use the header files from include/Config instead
of directly including the system header files.
---
Diffs of the changes:
Index: llvm/include/llvm/AbstractTypeUser.h
diff -u llvm/include/llvm/AbstractTypeUser.h:1.6.2.2 llvm/include/llvm/AbstractTypeUser.h:1.6.2.3
--- llvm/include/llvm/AbstractTypeUser.h:1.6.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/AbstractTypeUser.h Fri Jun 27 13:32:02 2003
@@ -21,7 +21,16 @@
#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
+//
+// In this way, most every LLVM source file will have access to the assert()
+// macro without having to #include <assert.h> directly.
+//
#include "Config/assert.h"
+
class Type;
class DerivedType;
Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.7.2.1 llvm/include/llvm/Constant.h:1.7.2.2
--- llvm/include/llvm/Constant.h:1.7.2.1 Mon Jun 23 13:51:40 2003
+++ llvm/include/llvm/Constant.h Fri Jun 27 13:32:02 2003
@@ -7,7 +7,6 @@
#ifndef LLVM_CONSTANT_H
#define LLVM_CONSTANT_H
-#include "Config/assert.h"
#include "llvm/User.h"
class Constant : public User {
Index: llvm/include/llvm/ConstantHandling.h
diff -u llvm/include/llvm/ConstantHandling.h:1.26.2.1 llvm/include/llvm/ConstantHandling.h:1.26.2.2
--- llvm/include/llvm/ConstantHandling.h:1.26.2.1 Mon Jun 23 13:51:40 2003
+++ llvm/include/llvm/ConstantHandling.h Fri Jun 27 13:32:02 2003
@@ -33,8 +33,6 @@
#ifndef LLVM_CONSTANTHANDLING_H
#define LLVM_CONSTANTHANDLING_H
-#include "Config/assert.h"
-
#include "llvm/Constants.h"
#include "llvm/Type.h"
class PointerType;
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.26.2.2 llvm/include/llvm/Constants.h:1.26.2.3
--- llvm/include/llvm/Constants.h:1.26.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/Constants.h Fri Jun 27 13:32:02 2003
@@ -8,7 +8,6 @@
#ifndef LLVM_CONSTANTS_H
#define LLVM_CONSTANTS_H
-#include "Config/assert.h"
#include "llvm/Constant.h"
#include "Support/DataTypes.h"
Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.29.2.2 llvm/include/llvm/DerivedTypes.h:1.29.2.3
--- llvm/include/llvm/DerivedTypes.h:1.29.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/DerivedTypes.h Fri Jun 27 13:32:02 2003
@@ -11,7 +11,6 @@
#ifndef LLVM_DERIVED_TYPES_H
#define LLVM_DERIVED_TYPES_H
-#include "Config/assert.h"
#include "llvm/Type.h"
class DerivedType : public Type {
Index: llvm/include/llvm/GlobalVariable.h
diff -u llvm/include/llvm/GlobalVariable.h:1.20.2.2 llvm/include/llvm/GlobalVariable.h:1.20.2.3
--- llvm/include/llvm/GlobalVariable.h:1.20.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/GlobalVariable.h Fri Jun 27 13:32:02 2003
@@ -13,7 +13,6 @@
#ifndef LLVM_GLOBAL_VARIABLE_H
#define LLVM_GLOBAL_VARIABLE_H
-#include "Config/assert.h"
#include "llvm/GlobalValue.h"
class Module;
Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.40.2.2 llvm/include/llvm/Instruction.h:1.40.2.3
--- llvm/include/llvm/Instruction.h:1.40.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/Instruction.h Fri Jun 27 13:32:02 2003
@@ -8,7 +8,6 @@
#ifndef LLVM_INSTRUCTION_H
#define LLVM_INSTRUCTION_H
-#include "Config/assert.h"
#include "llvm/User.h"
template<typename SC> struct ilist_traits;
Index: llvm/include/llvm/Pass.h
diff -u llvm/include/llvm/Pass.h:1.33.2.1 llvm/include/llvm/Pass.h:1.33.2.2
--- llvm/include/llvm/Pass.h:1.33.2.1 Mon Jun 23 13:51:40 2003
+++ llvm/include/llvm/Pass.h Fri Jun 27 13:32:02 2003
@@ -22,8 +22,6 @@
#ifndef LLVM_PASS_H
#define LLVM_PASS_H
-#include "Config/assert.h"
-
#include <vector>
#include <map>
#include <iosfwd>
Index: llvm/include/llvm/PassAnalysisSupport.h
diff -u llvm/include/llvm/PassAnalysisSupport.h:1.12.2.1 llvm/include/llvm/PassAnalysisSupport.h:1.12.2.2
--- llvm/include/llvm/PassAnalysisSupport.h:1.12.2.1 Mon Jun 23 13:51:40 2003
+++ llvm/include/llvm/PassAnalysisSupport.h Fri Jun 27 13:32:02 2003
@@ -14,8 +14,6 @@
// No need to include Pass.h, we are being included by it!
-#include "Config/assert.h"
-
//===----------------------------------------------------------------------===//
// AnalysisUsage - Represent the analysis usage information of a pass. This
// tracks analyses that the pass REQUIRES (must available when the pass runs),
Index: llvm/include/llvm/PassSupport.h
diff -u llvm/include/llvm/PassSupport.h:1.12.2.1 llvm/include/llvm/PassSupport.h:1.12.2.2
--- llvm/include/llvm/PassSupport.h:1.12.2.1 Mon Jun 23 13:51:40 2003
+++ llvm/include/llvm/PassSupport.h Fri Jun 27 13:32:02 2003
@@ -14,8 +14,6 @@
#ifndef LLVM_PASS_SUPPORT_H
#define LLVM_PASS_SUPPORT_H
-#include "Config/assert.h"
-
// No need to include Pass.h, we are being included by it!
class TargetMachine;
Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.21.2.2 llvm/include/llvm/SymbolTable.h:1.21.2.3
--- llvm/include/llvm/SymbolTable.h:1.21.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/SymbolTable.h Fri Jun 27 13:32:02 2003
@@ -16,7 +16,6 @@
#ifndef LLVM_SYMBOL_TABLE_H
#define LLVM_SYMBOL_TABLE_H
-#include "Config/assert.h"
#include "llvm/Value.h"
#include <map>
Index: llvm/include/llvm/User.h
diff -u llvm/include/llvm/User.h:1.18.2.2 llvm/include/llvm/User.h:1.18.2.3
--- llvm/include/llvm/User.h:1.18.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/User.h Fri Jun 27 13:32:02 2003
@@ -12,7 +12,6 @@
#ifndef LLVM_USER_H
#define LLVM_USER_H
-#include "Config/assert.h"
#include "llvm/Value.h"
class User : public Value {
Index: llvm/include/llvm/iOther.h
diff -u llvm/include/llvm/iOther.h:1.35.2.2 llvm/include/llvm/iOther.h:1.35.2.3
--- llvm/include/llvm/iOther.h:1.35.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/iOther.h Fri Jun 27 13:32:02 2003
@@ -8,7 +8,6 @@
#ifndef LLVM_IOTHER_H
#define LLVM_IOTHER_H
-#include "Config/assert.h"
#include "llvm/InstrTypes.h"
//===----------------------------------------------------------------------===//
Index: llvm/include/llvm/iPHINode.h
diff -u llvm/include/llvm/iPHINode.h:1.9.2.2 llvm/include/llvm/iPHINode.h:1.9.2.3
--- llvm/include/llvm/iPHINode.h:1.9.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/iPHINode.h Fri Jun 27 13:32:02 2003
@@ -7,7 +7,6 @@
#ifndef LLVM_IPHINODE_H
#define LLVM_IPHINODE_H
-#include "Config/assert.h"
#include "llvm/Instruction.h"
class BasicBlock;
Index: llvm/include/llvm/iTerminators.h
diff -u llvm/include/llvm/iTerminators.h:1.27.2.2 llvm/include/llvm/iTerminators.h:1.27.2.3
--- llvm/include/llvm/iTerminators.h:1.27.2.2 Thu Jun 26 16:34:37 2003
+++ llvm/include/llvm/iTerminators.h Fri Jun 27 13:32:02 2003
@@ -9,7 +9,6 @@
#ifndef LLVM_ITERMINATORS_H
#define LLVM_ITERMINATORS_H
-#include "Config/assert.h"
#include "llvm/InstrTypes.h"
//===---------------------------------------------------------------------------
More information about the llvm-commits
mailing list