]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmnMIValue.cpp
Merge ^/head r274961 through r276472.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmnMIValue.cpp
1 //===-- Platform.cpp --------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 //++
11 // File:                MICmnMIValue.h
12 //
13 // Overview:    CMICmnMIValue implementation.
14 //
15 // Environment: Compilers:      Visual C++ 12.
16 //                                                      gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
17 //                              Libraries:      See MIReadmetxt. 
18 //
19 // Copyright:   None.
20 //--
21
22 // In-house headers:
23 #include "MICmnMIValue.h"
24 #include "MICmnResources.h"
25
26 //++ ------------------------------------------------------------------------------------
27 // Details:     CMICmnMIValue constructor.
28 // Type:        Method.
29 // Args:        None.
30 // Return:      None.
31 // Throws:      None.
32 //--
33 CMICmnMIValue::CMICmnMIValue( void )
34 :       m_strValue( MIRSRC( IDS_WORD_INVALIDBRKTS ) )
35 ,       m_bJustConstructed( true )
36 {
37 }
38
39 //++ ------------------------------------------------------------------------------------
40 // Details:     CMICmnMIValue destructor.
41 // Type:        Overrideable.
42 // Args:        None.
43 // Return:      None.
44 // Throws:      None.
45 //--
46 CMICmnMIValue::~CMICmnMIValue( void )
47 {
48 }
49
50 //++ ------------------------------------------------------------------------------------
51 // Details:     Return the MI value as a string. The string is a direct result of
52 //                      work done on *this value so if not enough data is added then it is
53 //                      possible to return a malformed value. If nothing has been set or 
54 //                      added to *this MI value object then text "<Invalid>" will be returned.
55 // Type:        Method.
56 // Args:        None.
57 // Return:      CMIUtilString & - MI output text.
58 // Throws:      None.
59 //--
60 const CMIUtilString & CMICmnMIValue::GetString( void ) const
61 {
62         return m_strValue;
63 }
64