HomePhabricator

[llvm] Clarify responsiblity of some of DILocation discriminator APIs

Authored by mtrofin on Jan 23 2019, 4:10 PM.

Description

[llvm] Clarify responsiblity of some of DILocation discriminator APIs

Summary:
Renamed setBaseDiscriminator to cloneWithBaseDiscriminator, to match
similar APIs. Also changed its behavior to copy over the other
discriminator components, instead of eliding them.

Renamed cloneWithDuplicationFactor to
cloneByMultiplyingDuplicationFactor, which more closely matches what
this API does.

Reviewers: dblaikie, wmi

Reviewed By: dblaikie

Subscribers: zzheng, llvm-commits

Differential Revision: https://reviews.llvm.org/D56220

llvm-svn: 351996

Details

Committed
mtrofinJan 23 2019, 4:10 PM
Reviewer
dblaikie
Differential Revision
D56220: [llvm] Clarify responsiblity of some of DILocation discriminator APIs
Parents
rGd3068a2c2f30: Mark another test as flaky
Branches
Unknown
Tags
Unknown