#include "llvm/Target/MachineInstrInfo.h"
#include "llvm/Annotation.h"
-#include <iterator>
+#include <Support/iterator>
#include <Support/hash_set>
class Instruction;
using std::vector;
// 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;
inline void
MachineInstr::addImplicitRef(Value* val,
- bool isDef=false,
- bool isDefAndUse=false)
+ bool isDef,
+ bool isDefAndUse)
{
implicitRefs.push_back(val);
implicitIsDef.push_back(isDef);
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;
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);