aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 22:20:06 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 22:20:06 +0000
commit39d69009d015a5177303c9d8865143531e099314 (patch)
tree19e2d7159ca8f138d24fba31d62b2d9e6952103d
parent8dc67168ccbd09821ff6d963b26461e9b47028e7 (diff)
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3067 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineInstr.h12
-rw-r--r--include/llvm/Target/TargetSchedInfo.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index c81eb87e73..e208c5575e 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -11,7 +11,7 @@
#include "llvm/Target/MachineInstrInfo.h"
#include "llvm/Annotation.h"
-#include <iterator>
+#include <Support/iterator>
#include <Support/hash_set>
class Instruction;
using std::vector;
@@ -371,7 +371,7 @@ public:
// Iterator to enumerate machine operands.
//
template<class MITy, class VTy>
- class ValOpIterator : public std::forward_iterator<VTy, ptrdiff_t> {
+ class ValOpIterator : public forward_iterator<VTy, ptrdiff_t> {
unsigned i;
MITy MI;
@@ -488,8 +488,8 @@ MachineInstr::getImplicitRef(unsigned int i)
inline void
MachineInstr::addImplicitRef(Value* val,
- bool isDef=false,
- bool isDefAndUse=false)
+ bool isDef,
+ bool isDefAndUse)
{
implicitRefs.push_back(val);
implicitIsDef.push_back(isDef);
@@ -499,8 +499,8 @@ MachineInstr::addImplicitRef(Value* val,
inline void
MachineInstr::setImplicitRef(unsigned int i,
Value* val,
- bool isDef=false,
- bool isDefAndUse=false)
+ bool isDef,
+ bool isDefAndUse)
{
assert(i < implicitRefs.size() && "setImplicitRef() out of range!");
implicitRefs[i] = val;
diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h
index a08bd99815..00d4b188dc 100644
--- a/include/llvm/Target/TargetSchedInfo.h
+++ b/include/llvm/Target/TargetSchedInfo.h
@@ -28,7 +28,7 @@ private:
OpCodePair(); // disable for now
};
-namespace std {
+namespace HASH_NAMESPACE {
template <> struct hash<OpCodePair> {
size_t operator()(const OpCodePair& pair) const {
return hash<long>()(pair.val);