Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison include/llvm/Support/YAMLParser.h @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | 7d135dc70f03 |
children | 803732b1fca8 |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
39 #define LLVM_SUPPORT_YAMLPARSER_H | 39 #define LLVM_SUPPORT_YAMLPARSER_H |
40 | 40 |
41 #include "llvm/ADT/StringRef.h" | 41 #include "llvm/ADT/StringRef.h" |
42 #include "llvm/Support/Allocator.h" | 42 #include "llvm/Support/Allocator.h" |
43 #include "llvm/Support/SMLoc.h" | 43 #include "llvm/Support/SMLoc.h" |
44 #include <limits> | |
45 #include <map> | 44 #include <map> |
46 #include <utility> | 45 #include <utility> |
47 | 46 |
48 namespace llvm { | 47 namespace llvm { |
49 class MemoryBufferRef; | 48 class MemoryBufferRef; |
143 virtual void skip() {} | 142 virtual void skip() {} |
144 | 143 |
145 unsigned int getType() const { return TypeID; } | 144 unsigned int getType() const { return TypeID; } |
146 | 145 |
147 void *operator new(size_t Size, BumpPtrAllocator &Alloc, | 146 void *operator new(size_t Size, BumpPtrAllocator &Alloc, |
148 size_t Alignment = 16) LLVM_NOEXCEPT { | 147 size_t Alignment = 16) noexcept { |
149 return Alloc.Allocate(Size, Alignment); | 148 return Alloc.Allocate(Size, Alignment); |
150 } | 149 } |
151 | 150 |
152 void operator delete(void *Ptr, BumpPtrAllocator &Alloc, | 151 void operator delete(void *Ptr, BumpPtrAllocator &Alloc, |
153 size_t Size) LLVM_NOEXCEPT { | 152 size_t Size) noexcept { |
154 Alloc.Deallocate(Ptr, Size); | 153 Alloc.Deallocate(Ptr, Size); |
155 } | 154 } |
156 | 155 |
157 protected: | 156 protected: |
158 std::unique_ptr<Document> &Doc; | 157 std::unique_ptr<Document> &Doc; |
159 SMRange SourceRange; | 158 SMRange SourceRange; |
160 | 159 |
161 void operator delete(void *) LLVM_NOEXCEPT = delete; | 160 void operator delete(void *) noexcept = delete; |
162 | 161 |
163 ~Node() = default; | 162 ~Node() = default; |
164 | 163 |
165 private: | 164 private: |
166 unsigned int TypeID; | 165 unsigned int TypeID; |