-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[GSYM] Callsites: Add data format support and loading from YAML #109781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ac48f2c
fe23779
cd7c30a
087cdea
d7cff1b
cc1d314
32f7987
584fdf9
d5bd6d5
fda812c
ae391a2
4e7d719
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -191,7 +191,7 @@ llvm::Error GsymCreator::encode(FileWriter &O) const { | |
|
|
||
| llvm::Error GsymCreator::loadCallSitesFromYAML(StringRef YAMLFile) { | ||
| // Use the loader to load call site information from the YAML file. | ||
| CallSiteInfoLoader Loader(StringOffsetMap, StrTab, StringStorage); | ||
| CallSiteInfoLoader Loader(*this); | ||
| return Loader.loadYAML(Funcs, YAMLFile); | ||
| } | ||
|
|
||
|
|
@@ -385,6 +385,12 @@ uint32_t GsymCreator::insertString(StringRef S, bool Copy) { | |
| return StrOff; | ||
| } | ||
|
|
||
| StringRef GsymCreator::getString(uint32_t offset) { | ||
|
||
| assert(StringOffsetMap.count(offset) && | ||
| "GsymCreator::getString expects a valid offset as parameter."); | ||
| return StringOffsetMap.find(offset)->second.val(); | ||
| } | ||
|
|
||
| void GsymCreator::addFunctionInfo(FunctionInfo &&FI) { | ||
| std::lock_guard<std::mutex> Guard(Mutex); | ||
| Funcs.emplace_back(std::move(FI)); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.