diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-08-31 17:31:28 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-08-31 17:31:28 +0000 |
commit | 6bbe48967a6076c6d7777b17084e261f46156cdc (patch) | |
tree | 27bd07b2caa902d9f5d19a0ae59190a2773b13f4 /llvm/lib | |
parent | 0e167f7368fcf4d2527b1ee94a8e02c4c5698581 (diff) | |
download | llvm-6bbe48967a6076c6d7777b17084e261f46156cdc.zip llvm-6bbe48967a6076c6d7777b17084e261f46156cdc.tar.gz llvm-6bbe48967a6076c6d7777b17084e261f46156cdc.tar.bz2 |
Move the GCOVFormat enums into their own namespace per the LLVM coding standard.
llvm-svn: 163008
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/GCOV.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/VMCore/GCOV.cpp b/llvm/lib/VMCore/GCOV.cpp index 003a5d4..5bc1ac9 100644 --- a/llvm/lib/VMCore/GCOV.cpp +++ b/llvm/lib/VMCore/GCOV.cpp @@ -28,19 +28,19 @@ GCOVFile::~GCOVFile() { } /// isGCDAFile - Return true if Format identifies a .gcda file. -static bool isGCDAFile(GCOVFormat Format) { - return Format == GCDA_402 || Format == GCDA_404; +static bool isGCDAFile(GCOV::GCOVFormat Format) { + return Format == GCOV::GCDA_402 || Format == GCOV::GCDA_404; } /// isGCNOFile - Return true if Format identifies a .gcno file. -static bool isGCNOFile(GCOVFormat Format) { - return Format == GCNO_402 || Format == GCNO_404; +static bool isGCNOFile(GCOV::GCOVFormat Format) { + return Format == GCOV::GCNO_402 || Format == GCOV::GCNO_404; } /// read - Read GCOV buffer. bool GCOVFile::read(GCOVBuffer &Buffer) { - GCOVFormat Format = Buffer.readGCOVFormat(); - if (Format == InvalidGCOV) + GCOV::GCOVFormat Format = Buffer.readGCOVFormat(); + if (Format == GCOV::InvalidGCOV) return false; unsigned i = 0; @@ -87,21 +87,21 @@ GCOVFunction::~GCOVFunction() { /// read - Read a aunction from the buffer. Return false if buffer cursor /// does not point to a function tag. -bool GCOVFunction::read(GCOVBuffer &Buff, GCOVFormat Format) { +bool GCOVFunction::read(GCOVBuffer &Buff, GCOV::GCOVFormat Format) { if (!Buff.readFunctionTag()) return false; Buff.readInt(); // Function header length Ident = Buff.readInt(); Buff.readInt(); // Checksum #1 - if (Format != GCNO_402) + if (Format != GCOV::GCNO_402) Buff.readInt(); // Checksum #2 Name = Buff.readString(); - if (Format == GCNO_402 || Format == GCNO_404) + if (Format == GCOV::GCNO_402 || Format == GCOV::GCNO_404) Filename = Buff.readString(); - if (Format == GCDA_402 || Format == GCDA_404) { + if (Format == GCOV::GCDA_402 || Format == GCOV::GCDA_404) { Buff.readArcTag(); uint32_t Count = Buff.readInt() / 2; for (unsigned i = 0, e = Count; i != e; ++i) { |