diff options
author | Kevin Enderby <enderby@apple.com> | 2010-07-28 20:55:35 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2010-07-28 20:55:35 +0000 |
commit | 7cbf73a73f296167b6e978dbd919ed249e88eeb5 (patch) | |
tree | e9e874037081d251472bdc3a8e21c6876d9d2623 /lib/MC/MCDwarf.cpp | |
parent | 329878f4ddd72c6f2d2d6acfa48d7e1447ed88c0 (diff) | |
download | external_llvm-7cbf73a73f296167b6e978dbd919ed249e88eeb5.zip external_llvm-7cbf73a73f296167b6e978dbd919ed249e88eeb5.tar.gz external_llvm-7cbf73a73f296167b6e978dbd919ed249e88eeb5.tar.bz2 |
Added first bit of support for the dwarf .file directive. This patch collects
the info from the .file directive and makes file and directory tables that
will eventually be put out as part of the dwarf info in the output file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCDwarf.cpp')
-rw-r--r-- | lib/MC/MCDwarf.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp new file mode 100644 index 0000000..2da71f9 --- /dev/null +++ b/lib/MC/MCDwarf.cpp @@ -0,0 +1,21 @@ +//===- lib/MC/MCDwarf.cpp - MCDwarf implementation ------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "llvm/MC/MCDwarf.h" +#include "llvm/Support/Debug.h" +#include "llvm/Support/raw_ostream.h" +using namespace llvm; + +void MCDwarfFile::print(raw_ostream &OS) const { + OS << '"' << getName() << '"'; +} + +void MCDwarfFile::dump() const { + print(dbgs()); +} |