aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/NaCl.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/llvm/Analysis/NaCl.h b/include/llvm/Analysis/NaCl.h
index f1591075d0..8e599594b2 100644
--- a/include/llvm/Analysis/NaCl.h
+++ b/include/llvm/Analysis/NaCl.h
@@ -10,10 +10,6 @@
#ifndef LLVM_ANALYSIS_NACL_H
#define LLVM_ANALYSIS_NACL_H
-#include "llvm/ADT/Twine.h"
-#include <string>
-#include <vector>
-
namespace llvm {
class FunctionPass;
@@ -24,21 +20,5 @@ ModulePass *createPNaClABIVerifyModulePass();
}
-// A simple class to store verification errors. This allows them to be saved
-// and printed by the analysis passes' print() methods, while still allowing
-// the messages to be easily constructed with Twine.
-class ABIVerifyErrors {
- public:
- void addError(const llvm::Twine &Error) {
- Messages.push_back(Error.str());
- }
- typedef std::vector<std::string>::const_iterator const_iterator;
- const_iterator begin() const { return Messages.begin(); }
- const_iterator end() const { return Messages.end(); }
- bool empty() const { return Messages.empty(); }
- void clear() { Messages.clear(); }
- private:
- std::vector<std::string> Messages;
-};
#endif