1 //===- lib/MC/MCValue.cpp - MCValue implementation ------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/MC/MCValue.h"
11 #include "llvm/Support/raw_ostream.h"
15 void MCValue::print(raw_ostream
&OS
, const MCAsmInfo
*MAI
) const {
21 getSymA()->print(OS
, MAI
);
25 getSymB()->print(OS
, MAI
);
29 OS
<< " + " << getConstant();
32 void MCValue::dump() const {