From fd8009266f508a5eb1e200079f69706e8a4112e6 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 23 May 2016 16:32:11 +0000 Subject: llvm-dwp: Add an abstraction for the DWP string pool Also reference strings in the memory mapped file, reduces memory usage on a large test case by 18.5%. llvm-svn: 270449 --- llvm/tools/llvm-dwp/DWPError.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/tools/llvm-dwp/DWPError.h') diff --git a/llvm/tools/llvm-dwp/DWPError.h b/llvm/tools/llvm-dwp/DWPError.h index e0dd4edc8a8..62025ed4caa 100644 --- a/llvm/tools/llvm-dwp/DWPError.h +++ b/llvm/tools/llvm-dwp/DWPError.h @@ -1,6 +1,10 @@ +#ifndef TOOLS_LLVM_DWP_DWPERROR +#define TOOLS_LLVM_DWP_DWPERROR + #include "llvm/Support/Error.h" #include "llvm/Support/ErrorHandling.h" #include + namespace llvm { class DWPError : public ErrorInfo { public: @@ -15,3 +19,5 @@ private: std::string Info; }; } + +#endif -- cgit v1.2.3