diff options
author | David Blaikie <dblaikie@gmail.com> | 2016-05-23 16:32:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2016-05-23 16:32:11 +0000 |
commit | fd8009266f508a5eb1e200079f69706e8a4112e6 (patch) | |
tree | 750b0820c1156b432985689e2febc1909a179cf0 /llvm/tools/llvm-dwp/DWPError.h | |
parent | de9777af1b66b982f5b9284c8ae1c217e7d5972f (diff) | |
download | bcm5719-llvm-fd8009266f508a5eb1e200079f69706e8a4112e6.tar.gz bcm5719-llvm-fd8009266f508a5eb1e200079f69706e8a4112e6.zip |
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
Diffstat (limited to 'llvm/tools/llvm-dwp/DWPError.h')
-rw-r--r-- | llvm/tools/llvm-dwp/DWPError.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <string> + namespace llvm { class DWPError : public ErrorInfo<DWPError> { public: @@ -15,3 +19,5 @@ private: std::string Info; }; } + +#endif |