This will be used to YAMLify parts of the module summary.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
One nit: you're using StringMap everywhere and it can be confusing since it is not about the llvm::StringMap
| llvm/include/llvm/Support/YAMLTraits.h | ||
|---|---|---|
| 1550–1557 ↗ | (On Diff #82193) | nit: I think the variable names should start with a capital letter. |
Comment Actions
The name CustomMapping seems a little better, I'll rename and commit.
| llvm/include/llvm/Support/YAMLTraits.h | ||
|---|---|---|
| 1550–1557 ↗ | (On Diff #82193) | I'm just following the style in the rest of this file. |
| llvm/trunk/lib/Support/YAMLTraits.cpp | ||
|---|---|---|
| 389–393 | Isn't this: return is_contained(ValidKeys, Key);? | |
| llvm/trunk/lib/Support/YAMLTraits.cpp | ||
|---|---|---|
| 389–393 | Sweet, I didn't know about llvm::is_contained! | |
| llvm/trunk/lib/Support/YAMLTraits.cpp | ||
|---|---|---|
| 389–393 | Thanks. I changed the code to use is_contained in r290999. | |
Isn't this: return is_contained(ValidKeys, Key);?