/// target, it will warn the first time the size of the 'long' datatype is
/// queried.
///
-/// Note that TargetInfo does not take ownership of the various targets or the
-/// diagnostic info, but does expect them to be alive for as long as it is.
-///
class TargetInfo {
/// Primary - This tracks the primary target in the target set.
///
WCharWidth = 0;
}
+ /// AddSecondaryTarget - Add a secondary target to the target set.
+ void AddSecondaryTarget(const TargetInfoImpl *Secondary) {
+ SecondaryTargets.push_back(Secondary);
+ }
+
public:
/// CreateTargetInfo - Create a TargetInfo object from a group of
/// target triples. The first target triple is considered the primary
const std::string* TripledEnd,
Diagnostic* Diags = NULL);
+ ~TargetInfo();
+
//==----------------------------------------------------------------==/
// Accessors.
//==----------------------------------------------------------------==/
return !NonPortable;
}
- /// AddSecondaryTarget - Add a secondary target to the target set.
- void AddSecondaryTarget(const TargetInfoImpl *Secondary) {
- SecondaryTargets.push_back(Secondary);
- }
-
///===---- Target property query methods --------------------------------===//
/// DiagnoseNonPortability - Emit a diagnostic indicating that the current