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

Unified Diff: courgette/program_detector.h

Issue 2793153003: [Courgette] Refactor: Store Label Annotation in AssemblyProgram for patch generation. (Closed)
Patch Set: Rename *_label_annotation to *_label_annotations. Created 3 years, 8 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
« no previous file with comments | « courgette/patch_generator_x86_32.h ('k') | courgette/program_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/program_detector.h
diff --git a/courgette/program_detector.h b/courgette/program_detector.h
index 75e81a97c133c315a22ac920c3a537e577e420bf..a869a3f2487376b462fe6f9b520c371c81f23481 100644
--- a/courgette/program_detector.h
+++ b/courgette/program_detector.h
@@ -29,7 +29,7 @@ Status DetectExecutableType(const uint8_t* buffer,
ExecutableType* type,
size_t* detected_length);
-// Attempts to detect the type of executable, and parse it with the appropriate
+// Attempts to detect the type of executable by parsing it with the appropriate
// tools.
// On success:
// Parses the executable into a new AssemblyProgram in |*output|, and returns
@@ -40,6 +40,13 @@ Status ParseDetectedExecutable(const uint8_t* buffer,
size_t length,
std::unique_ptr<AssemblyProgram>* output);
+// ParseDetectedExecutable(), with Label annotations generated and stored in
+// |output|.
+Status ParseDetectedExecutableWithAnnotation(
+ const uint8_t* buffer,
+ size_t length,
+ std::unique_ptr<AssemblyProgram>* output);
+
} // namespace courgette
#endif // COURGETTE_PROGRAM_DETECTOR_H_
« no previous file with comments | « courgette/patch_generator_x86_32.h ('k') | courgette/program_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698