diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAG.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/CommandLine.h | 4 | ||||
-rw-r--r-- | include/llvm/User.h | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 685dc76..f258f6f 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -23,7 +23,7 @@ #include "llvm/ADT/PointerIntPair.h" namespace llvm { - struct SUnit; + class SUnit; class MachineConstantPool; class MachineFunction; class MachineModuleInfo; diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index def5ce7..1c6b333 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -833,8 +833,8 @@ class opt : public Option, typename ParserClass::parser_data_type(); if (Parser.parse(*this, ArgName, Arg, Val)) return true; // Parse error! - setValue(Val); - setPosition(pos); + this->setValue(Val); + this->setPosition(pos); return false; } diff --git a/include/llvm/User.h b/include/llvm/User.h index 69826c0..8a24406 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -84,6 +84,10 @@ public: void operator delete(void*, unsigned) { assert(0 && "Constructor throws?"); } + /// placement delete - required by std, but never called. + void operator delete(void*, unsigned, bool) { + assert(0 && "Constructor throws?"); + } protected: template <int Idx, typename U> static Use &OpFrom(const U *that) { return Idx < 0 |