summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbutil/FormatUtil.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-15 20:55:51 +0000
committerZachary Turner <zturner@google.com>2017-06-15 20:55:51 +0000
commitda504b794cf3154ec9b3f0fb728f1b3880a8bb77 (patch)
tree95d7f819b11df9e7368116ed40595259d29bc539 /llvm/tools/llvm-pdbutil/FormatUtil.cpp
parent60aac43813beccb33f72d15967ae4f21a789238d (diff)
downloadbcm5719-llvm-da504b794cf3154ec9b3f0fb728f1b3880a8bb77.tar.gz
bcm5719-llvm-da504b794cf3154ec9b3f0fb728f1b3880a8bb77.zip
Revert "[llvm-pdbutil] rewrite the "raw" output style."
This reverts commit 83ea17ebf2106859a51fbc2a86031b44d33696ad. This is failing due to some strange template problems, so reverting until it can be straightened out. llvm-svn: 305505
Diffstat (limited to 'llvm/tools/llvm-pdbutil/FormatUtil.cpp')
-rw-r--r--llvm/tools/llvm-pdbutil/FormatUtil.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/llvm/tools/llvm-pdbutil/FormatUtil.cpp b/llvm/tools/llvm-pdbutil/FormatUtil.cpp
deleted file mode 100644
index 007db9ee9f9..00000000000
--- a/llvm/tools/llvm-pdbutil/FormatUtil.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-//===- FormatUtil.cpp ----------------------------------------- *- C++ --*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "FormatUtil.h"
-#include "llvm/ADT/STLExtras.h"
-#include "llvm/ADT/StringExtras.h"
-#include "llvm/Support/FormatAdapters.h"
-#include "llvm/Support/FormatVariadic.h"
-
-using namespace llvm;
-using namespace llvm::pdb;
-
-std::string llvm::pdb::typesetItemList(ArrayRef<std::string> Opts,
- uint32_t GroupSize, uint32_t IndentLevel,
- StringRef Sep) {
- std::string Result;
- while (!Opts.empty()) {
- ArrayRef<std::string> ThisGroup;
- ThisGroup = Opts.take_front(GroupSize);
- Opts = Opts.drop_front(ThisGroup.size());
- Result += join(ThisGroup, Sep);
- if (!Opts.empty()) {
- Result += Sep;
- Result += "\n";
- Result += formatv("{0}", fmt_repeat(' ', IndentLevel));
- }
- }
- return Result;
-}
-
-std::string llvm::pdb::typesetStringList(uint32_t IndentLevel,
- ArrayRef<StringRef> Strings) {
- std::string Result = "[";
- for (const auto &S : Strings) {
- Result += formatv("\n{0}{1}", fmt_repeat(' ', IndentLevel), S);
- }
- Result += "]";
- return Result;
-}
-
-std::string llvm::pdb::formatSegmentOffset(uint16_t Segment, uint32_t Offset) {
- return formatv("{0:4}:{1:4}", Segment, Offset);
-}
OpenPOWER on IntegriCloud