diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
commit | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch) | |
tree | 98110734c91668dfdbb126fcc0e15ddbd93738ca /src/ToolBox/superpmi/superpmi-shared/mclist.h | |
parent | fa45f57ed55137c75ac870356a1b8f76c84b229c (diff) | |
download | coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2 coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip |
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared/mclist.h')
-rw-r--r-- | src/ToolBox/superpmi/superpmi-shared/mclist.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/mclist.h b/src/ToolBox/superpmi/superpmi-shared/mclist.h new file mode 100644 index 0000000000..93b2879569 --- /dev/null +++ b/src/ToolBox/superpmi/superpmi-shared/mclist.h @@ -0,0 +1,35 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// + +//---------------------------------------------------------- +// MCList.h - MethodContext List utility class +//---------------------------------------------------------- +#ifndef _MCList +#define _MCList +#define MAXMCLFILESIZE 0xFFFFFF + +class MCList +{ +public: + static bool processArgAsMCL(char *input, int *count, int **list); + + MCList() + { + //Initialize the static file handle + hMCLFile = INVALID_HANDLE_VALUE; + } + + //Methods to create an MCL file + void InitializeMCL(char *filename); + void AddMethodToMCL(int methodIndex); + void CloseMCL(); + +private: + static bool getLineData(const char *nameOfInput, /* OUT */ int *pIndexCount, /* OUT */ int **pIndexes); + + //File handle for MCL file + HANDLE hMCLFile; +}; +#endif |