Change code for reading emulation data files to read the new file
format.  (The newly formatted files will go in as a separate commit in a
few minutes).



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129981 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/NamedOptionValue.cpp b/source/Interpreter/NamedOptionValue.cpp
index 7c1284f..6b5dd7e 100644
--- a/source/Interpreter/NamedOptionValue.cpp
+++ b/source/Interpreter/NamedOptionValue.cpp
@@ -102,6 +102,21 @@
     return NULL;
 }
 
+const char *
+OptionValue::GetStringValue ()
+{
+    if (GetType () == OptionValue::eTypeString)
+        return static_cast<OptionValueString *>(this)->GetCurrentValue();
+    return NULL;
+}
+
+uint64_t
+OptionValue::GetUInt64Value ()
+{
+    if (GetType () == OptionValue::eTypeUInt64)
+        return static_cast<OptionValueUInt64 *>(this)->GetCurrentValue();
+    return 0;
+}
 
 //-------------------------------------------------------------------------
 // OptionValueCollection