1 //===- MCAsmMacro.h - Assembly Macros ---------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "llvm/MC/MCAsmMacro.h"
10 #include "llvm/Support/raw_ostream.h"
14 void MCAsmMacroParameter::dump(raw_ostream
&OS
) const {
15 OS
<< "\"" << Name
<< "\"";
23 for (const AsmToken
&T
: Value
) {
33 void MCAsmMacro::dump(raw_ostream
&OS
) const {
34 OS
<< "Macro " << Name
<< ":\n";
35 OS
<< " Parameters:\n";
36 for (const MCAsmMacroParameter
&P
: Parameters
) {
40 OS
<< " (BEGIN BODY)" << Body
<< "(END BODY)\n";