Move kOurExceptionClass and kOurDependentExceptionClass from source to header so that they can be used in multiple sources. This is a private header, these constants are not publicly exposed.
llvm-svn: 148827
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 6830b2a4935ad88810db04ededddec49a5c42857
diff --git a/src/cxa_exception.cpp b/src/cxa_exception.cpp
index ba4f84d..c80d60e 100644
--- a/src/cxa_exception.cpp
+++ b/src/cxa_exception.cpp
@@ -34,9 +34,7 @@
namespace __cxxabiv1 {
-static const uint64_t kOurExceptionClass = 0x434C4E47432B2B00; // CLNGC++\0
-static const uint64_t kOurDependentExceptionClass = 0x434C4E47432B2B01; // CLNGC++\1
-
+
// Utility routines
static
inline
diff --git a/src/cxa_exception.hpp b/src/cxa_exception.hpp
index 346ed38..88e3975 100644
--- a/src/cxa_exception.hpp
+++ b/src/cxa_exception.hpp
@@ -17,6 +17,9 @@
namespace __cxxabiv1 {
+static const uint64_t kOurExceptionClass = 0x434C4E47432B2B00; // CLNGC++\0
+static const uint64_t kOurDependentExceptionClass = 0x434C4E47432B2B01; // CLNGC++\1
+
struct __cxa_exception {
#if __LP64__
// This is a new field to support C++ 0x exception_ptr.