mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Tidy up. Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -92,7 +92,7 @@ static void Split(std::vector<std::string> &V, const StringRef S) {
|
||||
static std::string Join(const std::vector<std::string> &V) {
|
||||
// Start with empty string.
|
||||
std::string Result;
|
||||
// If the vector is not empty
|
||||
// If the vector is not empty
|
||||
if (!V.empty()) {
|
||||
// Start with the first feature
|
||||
Result = V[0];
|
||||
@@ -104,7 +104,7 @@ static std::string Join(const std::vector<std::string> &V) {
|
||||
Result += V[i];
|
||||
}
|
||||
}
|
||||
// Return the features string
|
||||
// Return the features string
|
||||
return Result;
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ void SetImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry,
|
||||
|
||||
/// ClearImpliedBits - For each feature that (transitively) implies this
|
||||
/// feature, clear it.
|
||||
///
|
||||
///
|
||||
static
|
||||
void ClearImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry,
|
||||
const SubtargetFeatureKV *FeatureTable,
|
||||
@@ -252,7 +252,7 @@ SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature,
|
||||
|
||||
return Bits;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// getFeatureBits - Get feature bits a CPU.
|
||||
///
|
||||
@@ -279,7 +279,7 @@ uint64_t SubtargetFeatures::getFeatureBits(const StringRef CPU,
|
||||
// Check if help is needed
|
||||
if (CPU == "help")
|
||||
Help(CPUTable, CPUTableSize, FeatureTable, FeatureTableSize);
|
||||
|
||||
|
||||
// Find CPU entry if CPU name is specified.
|
||||
if (!CPU.empty()) {
|
||||
const SubtargetFeatureKV *CPUEntry = Find(CPU, CPUTable, CPUTableSize);
|
||||
@@ -304,11 +304,11 @@ uint64_t SubtargetFeatures::getFeatureBits(const StringRef CPU,
|
||||
// Iterate through each feature
|
||||
for (size_t i = 0, E = Features.size(); i < E; i++) {
|
||||
const StringRef Feature = Features[i];
|
||||
|
||||
|
||||
// Check for help
|
||||
if (Feature == "+help")
|
||||
Help(CPUTable, CPUTableSize, FeatureTable, FeatureTableSize);
|
||||
|
||||
|
||||
// Find feature in table.
|
||||
const SubtargetFeatureKV *FeatureEntry =
|
||||
Find(StripFlag(Feature), FeatureTable, FeatureTableSize);
|
||||
@@ -349,7 +349,7 @@ void *SubtargetFeatures::getItinerary(const StringRef CPU,
|
||||
|
||||
// Find entry
|
||||
const SubtargetInfoKV *Entry = Find(CPU, Table, TableSize);
|
||||
|
||||
|
||||
if (Entry) {
|
||||
return Entry->Value;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user