diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-05-20 22:37:48 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-20 22:37:48 +0000 |
commit | 477300d3337c0b5446b97ae975aa0d47371ab083 (patch) | |
tree | 31cbbe1213760a0c75b0b566b67e2e1d03f8e06c /llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h | |
parent | 506813892e7063b64fdccbecafce6e19c2db5942 (diff) | |
download | bcm5719-llvm-477300d3337c0b5446b97ae975aa0d47371ab083.tar.gz bcm5719-llvm-477300d3337c0b5446b97ae975aa0d47371ab083.zip |
Revert "Add bool to DebugLocDwarfExpression to control emitting comments."
This reverts commit 0037b6bcbc874aa1b93d7ce3ad8dba3753ee2d9d (r237827).
David Blaikie suggested some alternatives to this which are better. Reverting to apply a better solution later.
llvm-svn: 237849
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h index 15e29164d2f..78ec937a6b6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h @@ -34,15 +34,10 @@ protected: const TargetRegisterInfo &TRI; unsigned DwarfVersion; - /// \brief Set to true if we want comments to be emitted. This is usually - /// only the case when the AsmPrinter is emitting to a text stream with - /// comments enabled. - bool PrintComments; - public: DwarfExpression(const TargetRegisterInfo &TRI, - unsigned DwarfVersion, bool PrintComments) - : TRI(TRI), DwarfVersion(DwarfVersion), PrintComments(PrintComments) {} + unsigned DwarfVersion) + : TRI(TRI), DwarfVersion(DwarfVersion) {} virtual ~DwarfExpression() {} /// Output a dwarf operand and an optional assembler comment. @@ -114,9 +109,8 @@ class DebugLocDwarfExpression : public DwarfExpression { public: DebugLocDwarfExpression(const TargetRegisterInfo &TRI, - unsigned DwarfVersion, bool PrintComments, - ByteStreamer &BS) - : DwarfExpression(TRI, DwarfVersion, PrintComments), BS(BS) {} + unsigned DwarfVersion, ByteStreamer &BS) + : DwarfExpression(TRI, DwarfVersion), BS(BS) {} void EmitOp(uint8_t Op, const char *Comment = nullptr) override; void EmitSigned(int64_t Value) override; |