Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Unified Diff: experimental/visual_studio_plugin/src/dwarf_reader/parse_state.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/visual_studio_plugin/src/dwarf_reader/parse_state.h
diff --git a/experimental/visual_studio_plugin/src/dwarf_reader/parse_state.h b/experimental/visual_studio_plugin/src/dwarf_reader/parse_state.h
deleted file mode 100644
index 423cb971509e12aef99b761e4e5f51e81a004157..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/dwarf_reader/parse_state.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef DWARF_READER_PARSE_STATE_H_
-#define DWARF_READER_PARSE_STATE_H_
-
-#include <stack>
-
-namespace dwarf_reader {
-
-/// This class is used to store some basic information about the data currenty
-/// being parsed out of the binary. It uses stacks because they are useful
-/// for doing the breadth-first traversal which the DWARF information is laid
-/// out to facilitate (by being a flattened representation of a tree of
-/// information entries).
-class ParseState {
- public:
- ParseState()
- : current_compilation_unit_(NULL) {}
-
- void set_current_compilation_unit(void *compilation_unit) {
- current_compilation_unit_ = compilation_unit;
- };
- void *current_compilation_unit();
-
- void PushStackFrame(void * context, uint64 address) {
- context_stack_.push(context);
- address_stack_.push(address);
- };
-
- void * GetTopStackContext() const {
- return context_stack_.top();
- }
-
- uint64 GetTopStackAddress() const {
- return address_stack_.top();
- }
-
- void PopStackFrame() {
- context_stack_.pop();
- address_stack_.pop();
- };
-
- private:
- stack<void*> context_stack_;
- stack<uint64> address_stack_;
- void *current_compilation_unit_;
-};
-
-} // namespace dwarf_reader
-
-#endif // DWARF_READER_PARSE_STATE_H_

Powered by Google App Engine
This is Rietveld 408576698