Subzero: Improve class definition hygiene.
Delete zero-argument ctor where possible.
Delete default copy ctor and default assignment operator where possible (some were missed in the past).
(The above are not done to the cross tests because we aren't yet building them with C++11.)
Declare single-argument ctor as "explicit".
BUG= none
R=jfb@chromium.org
Review URL: https://codereview.chromium.org/952953002
diff --git a/src/IceFixups.h b/src/IceFixups.h
index b52572f..bbe7d4a 100644
--- a/src/IceFixups.h
+++ b/src/IceFixups.h
@@ -25,7 +25,11 @@
// Assembler fixups are positions in generated code/data that hold relocation
// information that needs to be processed before finalizing the code/data.
struct AssemblerFixup {
+ AssemblerFixup &operator=(const AssemblerFixup &) = delete;
+
public:
+ AssemblerFixup() : position_(0), kind_(0), value_(nullptr) {}
+ AssemblerFixup(const AssemblerFixup &) = default;
intptr_t position() const { return position_; }
void set_position(intptr_t Position) { position_ = Position; }