[llvm-exegesis] Move namespace exegesis inside llvm::
Summary:
This allows simplifying references of llvm::foo with foo when the needs
come in the future.
Reviewers: courbet, gchatelet
Reviewed By: gchatelet
Subscribers: javed.absar, tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D53455
llvm-svn: 344922
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index 5d4912e..4b91c6c 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
@@ -22,6 +22,10 @@
static constexpr const char kDoublePrefix[] = "f_";
static constexpr const char kInvalidOperand[] = "INVALID";
+namespace llvm {
+
+namespace {
+
// A mutable struct holding an LLVMState that can be passed through the
// serialization process to encode/decode registers and instructions.
struct YamlContext {
@@ -141,13 +145,13 @@
return 0;
}
- const exegesis::LLVMState *State;
+ const llvm::exegesis::LLVMState *State;
std::string LastError;
llvm::raw_string_ostream ErrorStream;
};
+} // namespace
// Defining YAML traits for IO.
-namespace llvm {
namespace yaml {
static YamlContext &getTypedContext(void *Ctx) {
@@ -294,7 +298,6 @@
};
} // namespace yaml
-} // namespace llvm
namespace exegesis {
@@ -384,3 +387,4 @@
}
} // namespace exegesis
+} // namespace llvm