diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/lib/CodeGen/AsmPrinter/AddressPool.h | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/lib/CodeGen/AsmPrinter/AddressPool.h')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/AsmPrinter/AddressPool.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/llvm/lib/CodeGen/AsmPrinter/AddressPool.h b/gnu/llvm/lib/CodeGen/AsmPrinter/AddressPool.h index ba3e3b7c315..990a158d87c 100644 --- a/gnu/llvm/lib/CodeGen/AsmPrinter/AddressPool.h +++ b/gnu/llvm/lib/CodeGen/AsmPrinter/AddressPool.h @@ -1,4 +1,4 @@ -//===-- llvm/CodeGen/AddressPool.h - Dwarf Debug Framework -----*- C++ -*--===// +//===- llvm/CodeGen/AddressPool.h - Dwarf Debug Framework -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -11,11 +11,13 @@ #define LLVM_LIB_CODEGEN_ASMPRINTER_ADDRESSPOOL_H #include "llvm/ADT/DenseMap.h" -#include "llvm/MC/MCSymbol.h" namespace llvm { -class MCSection; + class AsmPrinter; +class MCSection; +class MCSymbol; + // Collection of addresses for this unit and assorted labels. // A Symbol->unsigned mapping of addresses used by indirect // references. @@ -23,6 +25,7 @@ class AddressPool { struct AddressPoolEntry { unsigned Number; bool TLS; + AddressPoolEntry(unsigned Number, bool TLS) : Number(Number), TLS(TLS) {} }; DenseMap<const MCSymbol *, AddressPoolEntry> Pool; @@ -31,10 +34,10 @@ class AddressPool { /// the last "resetUsedFlag" call. Used to implement type unit fallback - a /// type that references addresses cannot be placed in a type unit when using /// fission. - bool HasBeenUsed; + bool HasBeenUsed = false; public: - AddressPool() : HasBeenUsed(false) {} + AddressPool() = default; /// \brief Returns the index into the address pool with the given /// label/symbol. @@ -48,5 +51,7 @@ public: void resetUsedFlag() { HasBeenUsed = false; } }; -} -#endif + +} // end namespace llvm + +#endif // LLVM_LIB_CODEGEN_ASMPRINTER_ADDRESSPOOL_H |
